diff options
author | Jens Axboe <jaxboe@fusionio.com> | 2011-03-10 02:52:07 -0500 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-03-10 02:52:07 -0500 |
commit | 7eaceaccab5f40bbfda044629a6298616aeaed50 (patch) | |
tree | 33954d12f63e25a47eb6d86ef3d3d0a5e62bf752 /drivers/target | |
parent | 73c101011926c5832e6e141682180c4debe2cf45 (diff) |
block: remove per-queue plugging
Code has been converted over to the new explicit on-stack plugging,
and delay users have been converted to use the new API for that.
So lets kill off the old plugging along with aops->sync_page().
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_iblock.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c index 67f0c09983c8..c1b539d7b0d3 100644 --- a/drivers/target/target_core_iblock.c +++ b/drivers/target/target_core_iblock.c | |||
@@ -392,9 +392,8 @@ static int iblock_do_task(struct se_task *task) | |||
392 | { | 392 | { |
393 | struct se_device *dev = task->task_se_cmd->se_dev; | 393 | struct se_device *dev = task->task_se_cmd->se_dev; |
394 | struct iblock_req *req = IBLOCK_REQ(task); | 394 | struct iblock_req *req = IBLOCK_REQ(task); |
395 | struct iblock_dev *ibd = (struct iblock_dev *)req->ib_dev; | ||
396 | struct request_queue *q = bdev_get_queue(ibd->ibd_bd); | ||
397 | struct bio *bio = req->ib_bio, *nbio = NULL; | 395 | struct bio *bio = req->ib_bio, *nbio = NULL; |
396 | struct blk_plug plug; | ||
398 | int rw; | 397 | int rw; |
399 | 398 | ||
400 | if (task->task_data_direction == DMA_TO_DEVICE) { | 399 | if (task->task_data_direction == DMA_TO_DEVICE) { |
@@ -412,6 +411,7 @@ static int iblock_do_task(struct se_task *task) | |||
412 | rw = READ; | 411 | rw = READ; |
413 | } | 412 | } |
414 | 413 | ||
414 | blk_start_plug(&plug); | ||
415 | while (bio) { | 415 | while (bio) { |
416 | nbio = bio->bi_next; | 416 | nbio = bio->bi_next; |
417 | bio->bi_next = NULL; | 417 | bio->bi_next = NULL; |
@@ -421,9 +421,8 @@ static int iblock_do_task(struct se_task *task) | |||
421 | submit_bio(rw, bio); | 421 | submit_bio(rw, bio); |
422 | bio = nbio; | 422 | bio = nbio; |
423 | } | 423 | } |
424 | blk_finish_plug(&plug); | ||
424 | 425 | ||
425 | if (q->unplug_fn) | ||
426 | q->unplug_fn(q); | ||
427 | return PYX_TRANSPORT_SENT_TO_TRANSPORT; | 426 | return PYX_TRANSPORT_SENT_TO_TRANSPORT; |
428 | } | 427 | } |
429 | 428 | ||