summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 688f4c0..e85a2d3 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -3029,7 +3029,11 @@ bufwait(register struct buf * bp)
void
bufdonebio(struct bio *bp)
{
+
+ /* Device drivers may or may not hold giant, hold it here. */
+ mtx_lock(&Giant);
bufdone(bp->bio_caller2);
+ mtx_unlock(&Giant);
}
/*
OpenPOWER on IntegriCloud