]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
blk-stat: fix a typo
authorShaohua Li <shli@fb.com>
Sat, 3 Dec 2016 01:13:09 +0000 (17:13 -0800)
committerJens Axboe <axboe@fb.com>
Sat, 3 Dec 2016 03:17:43 +0000 (20:17 -0700)
Signed-off-by: Shaohua Li <shli@fb.com>
Fixes: cf43e6be865a ("block: add scalable completion tracking of requests")
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-stat.c

index 688c958367eed59f0d599afc6cebbd050039a255..4d0118568727ec2658742d27b8b8d8ff481ecdef 100644 (file)
@@ -12,7 +12,7 @@
 static void blk_stat_flush_batch(struct blk_rq_stat *stat)
 {
        const s32 nr_batch = READ_ONCE(stat->nr_batch);
-       const s32 nr_samples = READ_ONCE(stat->nr_batch);
+       const s32 nr_samples = READ_ONCE(stat->nr_samples);
 
        if (!nr_batch)
                return;