]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
mmc: remove pointless request type check in mmc_prep_request
authorChristoph Hellwig <hch@lst.de>
Tue, 31 Jan 2017 15:57:24 +0000 (16:57 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 31 Jan 2017 21:00:10 +0000 (14:00 -0700)
The block layer won't send requests the driver isn't asking for,
so remove this check.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/mmc/core/queue.c

index a6496d8027bce0b4914c2ced3cf6bada3c540b8c..033f641eb8b711e750df71d614475c1059316b9e 100644 (file)
@@ -30,15 +30,6 @@ static int mmc_prep_request(struct request_queue *q, struct request *req)
 {
        struct mmc_queue *mq = q->queuedata;
 
-       /*
-        * We only like normal block requests and discards.
-        */
-       if (req->cmd_type != REQ_TYPE_FS && req_op(req) != REQ_OP_DISCARD &&
-           req_op(req) != REQ_OP_SECURE_ERASE) {
-               blk_dump_rq_flags(req, "MMC bad request");
-               return BLKPREP_KILL;
-       }
-
        if (mq && (mmc_card_removed(mq->card) || mmc_access_rpmb(mq)))
                return BLKPREP_KILL;