From 8a8d62e1aa2a0ccc074fcac23309b8e4f7599516 Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 7 Feb 2004 08:54:50 +0000 Subject: swp_pager_async_iodone() no longer requires Giant. Modify bufdone() and swapgeom_done() to perform swp_pager_async_iodone() without Giant. Reviewed by: tegge --- sys/vm/swap_pager.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sys/vm') diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 93e193c..8de9c40 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -1428,7 +1428,6 @@ swp_pager_async_iodone(struct buf *bp) int i; vm_object_t object = NULL; - GIANT_REQUIRED; bp->b_flags |= B_DONE; /* @@ -2395,9 +2394,7 @@ swapgeom_done(struct bio *bp2) bp = bp2->bio_caller2; if (bp2->bio_error) bp->b_ioflags |= BIO_ERROR; - mtx_lock(&Giant); bufdone(bp); - mtx_unlock(&Giant); g_destroy_bio(bp2); } -- cgit v1.1