diff options
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 70d3a92..bf4970d 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1079,6 +1079,7 @@ bwillwrite(void) if (numdirtybuffers >= hidirtybuffers) { int s; + mtx_lock(&Giant); s = splbio(); while (numdirtybuffers >= hidirtybuffers) { bd_wakeup(1); @@ -1086,6 +1087,7 @@ bwillwrite(void) tsleep(&needsbuffer, (PRIBIO + 4), "flswai", 0); } splx(s); + mtx_unlock(&Giant); } } |