提交 cf22f802 编写于 作者: C Christoph Hellwig 提交者: Jens Axboe

ms_block: remove pointless prep_fn

This driver will never see non-fs requests, and doesn't do anything
else in the prep_fn.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 261c83c1
...@@ -2000,16 +2000,6 @@ static int msb_bd_getgeo(struct block_device *bdev, ...@@ -2000,16 +2000,6 @@ static int msb_bd_getgeo(struct block_device *bdev,
return 0; return 0;
} }
static int msb_prepare_req(struct request_queue *q, struct request *req)
{
if (req->cmd_type != REQ_TYPE_FS) {
blk_dump_rq_flags(req, "MS unsupported request");
return BLKPREP_KILL;
}
req->rq_flags |= RQF_DONTPREP;
return BLKPREP_OK;
}
static void msb_submit_req(struct request_queue *q) static void msb_submit_req(struct request_queue *q)
{ {
struct memstick_dev *card = q->queuedata; struct memstick_dev *card = q->queuedata;
...@@ -2132,7 +2122,6 @@ static int msb_init_disk(struct memstick_dev *card) ...@@ -2132,7 +2122,6 @@ static int msb_init_disk(struct memstick_dev *card)
} }
msb->queue->queuedata = card; msb->queue->queuedata = card;
blk_queue_prep_rq(msb->queue, msb_prepare_req);
blk_queue_bounce_limit(msb->queue, limit); blk_queue_bounce_limit(msb->queue, limit);
blk_queue_max_hw_sectors(msb->queue, MS_BLOCK_MAX_PAGES); blk_queue_max_hw_sectors(msb->queue, MS_BLOCK_MAX_PAGES);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册