s390/scm_blk: fix deadlock for requests != REQ_TYPE_FS
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 22 Mar 2016 18:00:55 +0000 (19:00 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 1 Apr 2016 15:20:54 +0000 (17:20 +0200)
commitb707c65ae70e24c47a0ce4a7279224ce8f0ffb7f
treed412c1f85904794f0c5ab59e93321b9909c88e62
parent6ddf37da05cd71bf9e43349d607e810b43c9008a
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>
drivers/s390/block/scm_blk.c