vfs_bio_awrite() was unconditionally locking a buffer without checking
commit6f68d895fddf11931f648d91cf3cb08c09f5211a
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 2 Mar 2006 20:28:49 +0000 (2 20:28 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 2 Mar 2006 20:28:49 +0000 (2 20:28 +0000)
treebf8e2ada7f6a838b02a1abfd176ed88a420c410b
parent598cd49a5f4d9ccfc6f559a6514008e9256365b3
vfs_bio_awrite() was unconditionally locking a buffer without checking
for races, potentially resulting in the wrong buffer, an invalid buffer,
or a recently replaced buffer being written out.  Change the call semantics
to require a locked buffer to be passed into the function rather then
locking the buffer in the function.
sys/kern/vfs_bio.c
sys/kern/vfs_subr.c