diff options
author | Robert Elliott <elliott@hp.com> | 2014-09-02 11:38:49 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-02 15:39:03 -0600 |
commit | dc501dc0d9dc9cbabc18b920f91a26c207e9476c (patch) | |
tree | c86eefd1c630c97810f48cfc4e0aa5d4b77d7aae /drivers/block/mtip32xx | |
parent | 0738854939e6ec9b9111a8cfc0ca1dfa3cff6b2e (diff) | |
download | linux-stable-dc501dc0d9dc9cbabc18b920f91a26c207e9476c.tar.gz linux-stable-dc501dc0d9dc9cbabc18b920f91a26c207e9476c.tar.bz2 linux-stable-dc501dc0d9dc9cbabc18b920f91a26c207e9476c.zip |
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>
Diffstat (limited to 'drivers/block/mtip32xx')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index db1e9560d8a7..5c8e7fe07745 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c @@ -3918,7 +3918,6 @@ skip_create_disk: if (rv) { dev_err(&dd->pdev->dev, "Unable to allocate request queue\n"); - rv = -ENOMEM; goto block_queue_alloc_init_error; } |