Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/lfs Make LFS/rump play nice with aiodoned removal.



details:   https://anonhg.NetBSD.org/src/rev/b3e1ef2d60b0
branches:  trunk
changeset: 969529:b3e1ef2d60b0
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Feb 22 22:20:47 2020 +0000

description:
Make LFS/rump play nice with aiodoned removal.

PR kern/55004 (Hundreds of file system tests now fail on real hardware)

diffstat:

 sys/ufs/lfs/lfs_segment.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 166ede8c68ec -r b3e1ef2d60b0 sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Sat Feb 22 22:09:07 2020 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Sat Feb 22 22:20:47 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.282 2020/02/18 20:23:17 chs Exp $    */
+/*     $NetBSD: lfs_segment.c,v 1.283 2020/02/22 22:20:47 ad Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.282 2020/02/18 20:23:17 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.283 2020/02/22 22:20:47 ad Exp $");
 
 #ifdef DEBUG
 # define vndebug(vp, str) do {                                         \
@@ -2513,7 +2513,7 @@
        fs = bp->b_private;
        ASSERT_NO_SEGLOCK(fs);
        lfs_freebuf(fs, bp);
-       KERNEL_UNLOCK_LAST(curlwp);
+       KERNEL_UNLOCK_ONE(curlwp);
 }
 
 static void
@@ -2531,7 +2531,7 @@
        wakeup(&fs->lfs_sbactive);
        mutex_exit(&lfs_lock);
        lfs_freebuf(fs, bp);
-       KERNEL_UNLOCK_LAST(curlwp);
+       KERNEL_UNLOCK_ONE(curlwp);
 }
 
 static void
@@ -2664,7 +2664,7 @@
                wakeup(&fs->lfs_iocount);
        mutex_exit(&lfs_lock);
 
-       KERNEL_UNLOCK_LAST(curlwp);
+       KERNEL_UNLOCK_ONE(curlwp);
 
        pool_put(&fs->lfs_bpppool, cl->bpp);
        cl->bpp = NULL;



Home | Main Index | Thread Index | Old Index