Fix a KASSERT() that was negated and lead to:
nfs_strategy: buffer 0xxxxx not locked when you attempted to write and had INVARIANTS turned on.
This commit is contained in:
parent
e293ac59c6
commit
5fc491ef58
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48317
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
|
||||
* $Id: nfs_vnops.c,v 1.131 1999/06/16 23:27:48 mckusick Exp $
|
||||
* $Id: nfs_vnops.c,v 1.132 1999/06/26 02:46:32 mckusick Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -2647,7 +2647,7 @@ nfs_strategy(ap)
|
||||
int error = 0;
|
||||
|
||||
KASSERT(!(bp->b_flags & B_DONE), ("nfs_strategy: buffer %p unexpectedly marked B_DONE", bp));
|
||||
KASSERT(BUF_REFCNT(bp) == 0, ("nfs_strategy: buffer %p not locked", bp));
|
||||
KASSERT(BUF_REFCNT(bp) > 0, ("nfs_strategy: buffer %p not locked", bp));
|
||||
|
||||
if (bp->b_flags & B_PHYS)
|
||||
panic("nfs physio");
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
|
||||
* $Id: nfs_vnops.c,v 1.131 1999/06/16 23:27:48 mckusick Exp $
|
||||
* $Id: nfs_vnops.c,v 1.132 1999/06/26 02:46:32 mckusick Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -2647,7 +2647,7 @@ nfs_strategy(ap)
|
||||
int error = 0;
|
||||
|
||||
KASSERT(!(bp->b_flags & B_DONE), ("nfs_strategy: buffer %p unexpectedly marked B_DONE", bp));
|
||||
KASSERT(BUF_REFCNT(bp) == 0, ("nfs_strategy: buffer %p not locked", bp));
|
||||
KASSERT(BUF_REFCNT(bp) > 0, ("nfs_strategy: buffer %p not locked", bp));
|
||||
|
||||
if (bp->b_flags & B_PHYS)
|
||||
panic("nfs physio");
|
||||
|
Loading…
Reference in New Issue
Block a user