Skip to content

Commit b707c65

Browse files
Sebastian OttMartin Schwidefsky
authored andcommitted
s390/scm_blk: fix deadlock for requests != REQ_TYPE_FS
When we refuse a non REQ_TYPE_FS request in the build request function we already hold the queue lock. Thus we must not call blk_end_request_all but __blk_end_request_all. Reported-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Fixes: de9587a ('s390/scm_blk: fix endless loop for requests != REQ_TYPE_FS') Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 6ddf37d commit b707c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/s390/block/scm_blk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static void scm_blk_request(struct request_queue *rq)
303303
if (req->cmd_type != REQ_TYPE_FS) {
304304
blk_start_request(req);
305305
blk_dump_rq_flags(req, KMSG_COMPONENT " bad request");
306-
blk_end_request_all(req, -EIO);
306+
__blk_end_request_all(req, -EIO);
307307
continue;
308308
}
309309

0 commit comments

Comments
 (0)