Author: kib
Date: Tue Mar  8 11:50:59 2011
New Revision: 219396
URL: http://svn.freebsd.org/changeset/base/219396

Log:
  Do not assert buffer lock in VFS_STRATEGY() when kernel already paniced.
  
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week

Modified:
  head/sys/kern/vfs_subr.c

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c    Tue Mar  8 08:02:39 2011        (r219395)
+++ head/sys/kern/vfs_subr.c    Tue Mar  8 11:50:59 2011        (r219396)
@@ -3894,7 +3894,7 @@ vop_strategy_pre(void *ap)
        if ((bp->b_flags & B_CLUSTER) != 0)
                return;
 
-       if (!BUF_ISLOCKED(bp)) {
+       if (panicstr == NULL && !BUF_ISLOCKED(bp)) {
                if (vfs_badlock_print)
                        printf(
                            "VOP_STRATEGY: bp is not locked but should be\n");
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to