Do not fetch precise time of request start when stats collection disabled.
Reviewed by: pjd, phk
This commit is contained in:
parent
438be77d54
commit
a5be8eb530
@ -443,7 +443,10 @@ g_io_request(struct bio *bp, struct g_consumer *cp)
|
||||
("Bio already on queue bp=%p", bp));
|
||||
bp->bio_flags |= BIO_ONQUEUE;
|
||||
|
||||
binuptime(&bp->bio_t0);
|
||||
if (g_collectstats)
|
||||
binuptime(&bp->bio_t0);
|
||||
else
|
||||
getbinuptime(&bp->bio_t0);
|
||||
|
||||
/*
|
||||
* The statistics collection is lockless, as such, but we
|
||||
|
Loading…
Reference in New Issue
Block a user