mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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:
parent
ec050a6488
commit
ae2afc437b
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue