Re: [PATCH] block, bfq: fix error handle in bfq_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Il giorno 23 ago 2017, alle ore 17:25, weiping zhang <zhangweiping@xxxxxxxxxxxxxxx> ha scritto:
> 
> On Sat, Aug 19, 2017 at 12:37:20AM +0800, weiping zhang wrote:
>> if elv_register fail, bfq_pool should be free.
>> 
>> Signed-off-by: weiping zhang <zhangweiping@xxxxxxxxxxxxxxx>
>> ---
>> block/bfq-iosched.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>> 
>> diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
>> index 436b6ca..bdb072f 100644
>> --- a/block/bfq-iosched.c
>> +++ b/block/bfq-iosched.c
>> @@ -5048,10 +5048,12 @@ static int __init bfq_init(void)
>> 
>> 	ret = elv_register(&iosched_bfq_mq);
>> 	if (ret)
>> -		goto err_pol_unreg;
>> +		goto slab_kill;
>> 
>> 	return 0;
>> 
>> +slab_kill:
>> +	bfq_slab_kill();
>> err_pol_unreg:
>> #ifdef CONFIG_BFQ_GROUP_IOSCHED
>> 	blkcg_policy_unregister(&blkcg_policy_bfq);
>> -- 
>> 2.9.4
>> 
> Hi Paolo, Jens,
> 
> could you give some comments for this patch ?
> 

Sorry for not making it in time (vacation), and thanks for fixing this
bug.

Paolo

> Thanks





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux