loop: return proper error from loop_queue_rq()
authorOmar Sandoval <osandov@fb.com>
Mon, 14 Nov 2016 22:56:17 +0000 (14:56 -0800)
committerJens Axboe <axboe@fb.com>
Mon, 14 Nov 2016 22:58:44 +0000 (15:58 -0700)
commitb4a567e8114327518c09f5632339a5954ab975a3
tree7d16a513637b92f3bdc4a509145a246740279064
parentc6463c651d7ab599a4878115723a5bcb6ae5b470
loop: return proper error from loop_queue_rq()

->queue_rq() should return one of the BLK_MQ_RQ_QUEUE_* constants, not
an errno.

f4aa4c7bbac6 ("block: loop: convert to per-device workqueue")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/loop.c