summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2004-02-07 08:54:50 +0000
committerAlan Cox <alc@FreeBSD.org>2004-02-07 08:54:50 +0000
commitc5aebf380cbe623137bcc22ac0b0b30824dba454 (patch)
tree8b3ec0adc3ccbbd2d789f27c3c62041cfb37b898
parent9ee9ecea007534057d23a3e6eea17645e53c08d9 (diff)
Notes
-rw-r--r--sys/kern/vfs_bio.c1
-rw-r--r--sys/vm/swap_pager.c3
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index f21f48e332cd..eafb9773704c 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -3102,7 +3102,6 @@ bufdone(struct buf *bp)
int s;
void (*biodone)(struct buf *);
- GIANT_REQUIRED;
s = splbio();
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 93e193c7e156..8de9c40ea1ed 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);
}