[PATCH BUGFIX V2 2/3] null_blk: guarantee device restart in all irq modes

2015-12-01 Thread Paolo Valente
From: Arianna Avanzini In single-queue (block layer) mode,the function null_rq_prep_fn stops the device if alloc_cmd fails. Then, once stopped, the device must be restarted on the next command completion, so that the request(s) for which alloc_cmd failed can be requeued. Otherwise the device

[PATCH BUGFIX V2 2/3] null_blk: guarantee device restart in all irq modes

2015-12-01 Thread Paolo Valente
From: Arianna Avanzini In single-queue (block layer) mode,the function null_rq_prep_fn stops the device if alloc_cmd fails. Then, once stopped, the device must be restarted on the next command completion, so that the request(s) for which alloc_cmd failed can be requeued.