lkml.org 
[lkml]   [2016]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH BUGFIX] block: add missing group association in bio_split
Date
Jeff Moyer <jmoyer@redhat.com> writes:

> Paolo Valente <paolo.valente@linaro.org> writes:
>
>> @@ -1811,6 +1811,11 @@ struct bio *bio_split(struct bio *bio, int sectors,
>>
>> bio_advance(bio, split->bi_iter.bi_size);
>>
>> +#ifdef CONFIG_BLK_CGROUP
>> + if (bio->bi_css)
>> + bio_associate_blkcg(split, bio->bi_css);
>> +#endif
>> +
>> return split;
>> }
>> EXPORT_SYMBOL(bio_split);
>
> Get rid of the #ifdefery. This should be just:
>
> bio_associate_blkcg(split, bio->bi_css);

Gah, I see that the bi_css member is only present for CONFIG_BLK_CGROUP.
I guess we'll have to live with the ifdef.

-Jeff

\
 
 \ /
  Last update: 2016-05-09 17:01    [W:0.570 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site