aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/ll_rw_blk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c
index c42071fd2e95..4e2b1b06b411 100644
--- a/drivers/block/ll_rw_blk.c
+++ b/drivers/block/ll_rw_blk.c
@@ -2433,6 +2433,9 @@ void disk_round_stats(struct gendisk *disk)
2433{ 2433{
2434 unsigned long now = jiffies; 2434 unsigned long now = jiffies;
2435 2435
2436 if (now == disk->stamp)
2437 return;
2438
2436 if (disk->in_flight) { 2439 if (disk->in_flight) {
2437 __disk_stat_add(disk, time_in_queue, 2440 __disk_stat_add(disk, time_in_queue,
2438 disk->in_flight * (now - disk->stamp)); 2441 disk->in_flight * (now - disk->stamp));