lkml.org 
[lkml]   [2016]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] blk-stat: fix a typo
From
Date
On 12/02/2016 08:16 PM, Jens Axboe wrote:
> On 12/02/2016 06:13 PM, Shaohua Li wrote:
>> Signed-off-by: Shaohua Li <shli@fb.com>
>> ---
>> block/blk-stat.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/block/blk-stat.c b/block/blk-stat.c
>> index 688c958..4d01185 100644
>> --- a/block/blk-stat.c
>> +++ b/block/blk-stat.c
>> @@ -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;
>>
>
> Gah, that sucks. Thanks, added for 4.10.

BTW, this was added right before inclusion, all the previously posted
versions were not broken in this way. So thanks for spotting this!

--
Jens Axboe

\
 
 \ /
  Last update: 2016-12-03 05:36    [W:0.050 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site