diff options
author | Tejun Heo <tj@kernel.org> | 2011-12-13 18:33:37 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2011-12-13 18:33:37 -0500 |
commit | 1ba64edef6051d2ec79bb2fbd3a0c8f0df00ab55 (patch) | |
tree | 1e8a8d5cfdfeff0f92490985bd125ab6666673b0 /drivers/block/sx8.c | |
parent | dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50 (diff) |
block, sx8: kill blk_insert_request()
The only user left for blk_insert_request() is sx8 and it can be
trivially switched to use blk_execute_rq_nowait() - special requests
aren't included in io stat and sx8 doesn't use block layer tagging.
Switch sx8 and kill blk_insert_requeset().
This patch doesn't introduce any functional difference.
Only compile tested.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/sx8.c')
-rw-r--r-- | drivers/block/sx8.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index b70f0fca9a42..e7472f567c9d 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -619,8 +619,10 @@ static int carm_array_info (struct carm_host *host, unsigned int array_idx) | |||
619 | host->state == HST_DEV_SCAN); | 619 | host->state == HST_DEV_SCAN); |
620 | spin_unlock_irq(&host->lock); | 620 | spin_unlock_irq(&host->lock); |
621 | 621 | ||
622 | DPRINTK("blk_insert_request, tag == %u\n", idx); | 622 | DPRINTK("blk_execute_rq_nowait, tag == %u\n", idx); |
623 | blk_insert_request(host->oob_q, crq->rq, 1, crq); | 623 | crq->rq->cmd_type = REQ_TYPE_SPECIAL; |
624 | crq->rq->special = crq; | ||
625 | blk_execute_rq_nowait(host->oob_q, NULL, crq->rq, true, NULL); | ||
624 | 626 | ||
625 | return 0; | 627 | return 0; |
626 | 628 | ||
@@ -658,8 +660,10 @@ static int carm_send_special (struct carm_host *host, carm_sspc_t func) | |||
658 | BUG_ON(rc < 0); | 660 | BUG_ON(rc < 0); |
659 | crq->msg_bucket = (u32) rc; | 661 | crq->msg_bucket = (u32) rc; |
660 | 662 | ||
661 | DPRINTK("blk_insert_request, tag == %u\n", idx); | 663 | DPRINTK("blk_execute_rq_nowait, tag == %u\n", idx); |
662 | blk_insert_request(host->oob_q, crq->rq, 1, crq); | 664 | crq->rq->cmd_type = REQ_TYPE_SPECIAL; |
665 | crq->rq->special = crq; | ||
666 | blk_execute_rq_nowait(host->oob_q, NULL, crq->rq, true, NULL); | ||
663 | 667 | ||
664 | return 0; | 668 | return 0; |
665 | } | 669 | } |