Re: [PATCH 1/1] null_blk: fix error flow for shared tags during module_init

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

 



On 07/06/2017 07:24 AM, Max Gurtovoy wrote:
> In case we use shared tags feature, blk_mq_alloc_tag_set might fail
> during module initialization. Check the return value and default to run
> without shared tag set before continuing. Also move the tagset
> initialization process after defining the amount of submition queues.

Fail the load instead. For two reasons:

1) We could be loading to test this explicitly. null_blk isn't a regular
   driver, it's not like we're bringing up the system on this thing.
   Hence I feel it's more important that it loads with what we asked for,
   or not load at all.

2) If initializing one tag set fails, the unshared case will surely
   fail too.



-- 
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