Skip to contentSkip to conversation

Patch "loop: return proper error from loop_queue_rq()" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Jan 4, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

loop: return proper error from loop_queue_rq()

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
loop-return-proper-error-from-loop_queue_rq.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From b4a567e8114327518c09f5632339a5954ab975a3 Mon Sep 17 00:00:00 2001

From: Omar Sandoval <[email protected]>
Date: Mon, 14 Nov 2016 14:56:17 -0800
Subject: loop: return proper error from loop_queue_rq()

From: Omar Sandoval <[email protected]>

commit b4a567e8114327518c09f5632339a5954ab975a3 upstream.

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

Fixes f4aa4c7bbac6 ("block: loop: convert to per-device workqueue")
---
 drivers/block/loop.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/loop.c +1 -1
@@ -1657,7 +1657,7 @@ static int loop_queue_rq(struct blk_mq_h
 	blk_mq_start_request(bd->rq);
 
 	if (lo->lo_state != Lo_bound)
-		return -EIO;
+		return BLK_MQ_RQ_QUEUE_ERROR;
 
 	if (lo->use_dio && !(cmd->rq->cmd_flags & (REQ_FLUSH |
 					REQ_DISCARD)))

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/loop-return-proper-error-from-loop_queue_rq.patch