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

Reply via email to