s390/scm_blk: fix endless loop for requests != REQ_TYPE_FS
authorSteffen Maier <maier@linux.vnet.ibm.com>
Tue, 5 Nov 2013 11:59:46 +0000 (12:59 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 6 Nov 2013 13:32:22 +0000 (14:32 +0100)
commitde9587a2f54d2d0063f0dbc775328129b9daaaa2
treec013b5729a5250b774b5476dd48fdda817d27c80
parent106078641f32a6a10d9759f809f809725695cb09
s390/scm_blk: fix endless loop for requests != REQ_TYPE_FS

The while loop only peeks at the top request in the queue but does
not yet consume it. Since we only handle fs requests, we need to
dequeue and complete all other request command types with error
just in case we would ever receive such an unforeseen request.

Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
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