scm_blk: remove unneeded REQ_TYPE_FS check
authorChristoph Hellwig <hch@lst.de>
Tue, 31 Jan 2017 15:57:22 +0000 (16:57 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 31 Jan 2017 20:59:59 +0000 (13:59 -0700)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/s390/block/scm_blk.c

index 9f16ea6964ec6182e996168c0f67408b61c93f6e..152de6817875cb6d47cfe45c76c6f677daf83520 100644 (file)
@@ -300,13 +300,6 @@ static void scm_blk_request(struct request_queue *rq)
        struct request *req;
 
        while ((req = blk_peek_request(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);
-                       continue;
-               }
-
                if (!scm_permit_request(bdev, req))
                        goto out;