[Nbd] [patch 2/2] nbd: checking for NULL vs IS_ERR

2016-10-12 Thread 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 diff --git a/drivers/block/nbd.c

[Nbd] [patch 1/2] nbd: remove stray IRQ enable

2016-10-12 Thread Dan Carpenter
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 diff --git a/drivers/block/nbd.c