]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: pass along blk_mq_alloc_tag_set return values
authorRobert Elliott <elliott@hp.com>
Tue, 2 Sep 2014 16:38:49 +0000 (11:38 -0500)
committerJens Axboe <axboe@fb.com>
Tue, 2 Sep 2014 21:39:03 +0000 (15:39 -0600)
commitb21234000cadae79a81e3582b53cd1e5f4915b19
treec86eefd1c630c97810f48cfc4e0aa5d4b77d7aae
parent8933d683f90bd56f308ca8bef2832ad9acd970c2
blk-mq: pass along blk_mq_alloc_tag_set return values

Two of the blk-mq based drivers do not pass back the return value
from blk_mq_alloc_tag_set, instead just returning -ENOMEM.

blk_mq_alloc_tag_set returns -EINVAL if the number of queues or
queue depth is bad.  -ENOMEM implies that retrying after freeing some
memory might be more successful, but that won't ever change
in the -EINVAL cases.

Change the null_blk and mtip32xx drivers to pass along
the return value.

Signed-off-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c
drivers/block/null_blk.c