Skip to content

Commit

Permalink
s390/scm_blk: fix deadlock for requests != REQ_TYPE_FS
Browse files Browse the repository at this point in the history
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 <[email protected]>
Fixes: de9587a ('s390/scm_blk: fix endless loop for requests != REQ_TYPE_FS')
Signed-off-by: Sebastian Ott <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Apr 1, 2016
1 parent 6ddf37d commit b707c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/block/scm_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ static void scm_blk_request(struct request_queue *rq)
if (req->cmd_type != REQ_TYPE_FS) {
blk_start_request(req);
blk_dump_rq_flags(req, KMSG_COMPONENT " bad request");
blk_end_request_all(req, -EIO);
__blk_end_request_all(req, -EIO);
continue;
}

Expand Down

0 comments on commit b707c65

Please sign in to comment.