[Nbd] [bug report] nbd: add multi-connection support

2016-11-23 Thread Dan Carpenter
* 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 ---

[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 <dan.carpen...@oracle.com> diff --git a/drivers/block/nbd.c b/d

[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 <dan.carpen...@oracle.com> diff --git a/drivers/block/nbd.c b/d