1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Experimentally don't let go of Giant in geom_disk's done.

We may actually be increasing Giant contention doing so because the
actual stuff we do is very cheap.

Also I am not convinced there is not a tiny window for a race here.
This commit is contained in:
Poul-Henning Kamp 2003-02-06 21:50:39 +00:00
parent ec050a6488
commit ae2afc437b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110475

View File

@ -154,6 +154,7 @@ g_disk_kerneldump(struct bio *bp, struct disk *dp)
static void
g_disk_done(struct bio *bp)
{
#ifdef maybe_not
struct disk *dp;
dp = bp->bio_disk;
@ -165,6 +166,10 @@ g_disk_done(struct bio *bp)
} else {
g_std_done(bp);
}
#else
bp->bio_completed = bp->bio_length - bp->bio_resid;
g_std_done(bp);
#endif
}
static void