Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/ufs/lfs Pull up revision 1.78 (requested by persean...



details:   https://anonhg.NetBSD.org/src/rev/baace0ad2be2
branches:  netbsd-1-6
changeset: 527693:baace0ad2be2
user:      tv <tv%NetBSD.org@localhost>
date:      Sun Jun 02 15:31:17 2002 +0000

description:
Pull up revision 1.78 (requested by perseant in ticket #135):
Fix a couple of instances where reassignbuf() was not done at splbio.
Tested on i386.

diffstat:

 sys/ufs/lfs/lfs_segment.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 2d22cfbb8e53 -r baace0ad2be2 sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Sun Jun 02 15:30:32 2002 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Sun Jun 02 15:31:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.76.2.1 2002/06/02 15:30:23 tv Exp $  */
+/*     $NetBSD: lfs_segment.c,v 1.76.2.2 2002/06/02 15:31:17 tv Exp $  */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.76.2.1 2002/06/02 15:30:23 tv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.76.2.2 2002/06/02 15:31:17 tv Exp $");
 
 #define ivndebug(vp,str) printf("ino %d: %s\n",VTOI(vp)->i_number,(str))
 
@@ -1661,7 +1661,9 @@
                                } else {
                                        bremfree(bp);
                                        bp->b_flags |= B_DONE;
+                                       s = splbio();
                                        reassignbuf(bp, bp->b_vp);
+                                       splx(s);
                                        LFS_UNLOCK_BUF(bp);
                                        brelse(bp);
                                }



Home | Main Index | Thread Index | Old Index