* For compatibility only, we no longer keep a list of
823 * outstanding requests.
824 */
825 return 0;
826 }
827 return -ENOTTY;
828 }
regards,
dan carpenter
---
blk_mq_alloc_request() returns error pointers on error, never NULLs.
Same thing with blk_mq_init_queue(), and also we should set the error
code there.
Fixes: fd8383fd88a2 ('nbd: convert to blkmq')
Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
diff --git a/drivers/block/nbd.c b/d
We recently changed from spin_lock_irq() to just spin_lock(). This
return path was overlooked and needs to be updated as well.
Fixes: 0eadf37afc25 ('nbd: allow block mq to deal with timeouts')
Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
diff --git a/drivers/block/nbd.c b/d