Re: [PATCH] blk-mq: fix kernel oops in blk_mq_tag_idle()

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

 



On 1/9/18 8:29 AM, Jens Axboe wrote:
> On Tue, Jan 09 2018, Ming Lei wrote:
>> HW queues may be unmapped in some cases, such as blk_mq_update_nr_hw_queues(),
>> then we need to check it before calling blk_mq_tag_idle(), otherwise
>> the following kernel oops can be triggered, so fix it by checking if
>> the hw queue is unmapped since it doesn't make sense to idle the tags
>> any more after hw queues are unmapped.
> 
> Seems cleaner to just move the mapped check to the idling function,
> especially since we already have the same check in the other spot where
> we call the idling.

Ho hum, I guess that requires shuffling some code/includes to
actually do that. I'll just apply yours as-is.

-- 
Jens Axboe




[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