diff options
author | Jens Axboe <axboe@fb.com> | 2016-04-13 15:33:19 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-04-13 15:33:19 -0400 |
commit | c888a8f95ae5b1067855235b3b71c1ebccf504f5 (patch) | |
tree | b40d388cf1b30d5ac95a7472e4ca433d3ca18c6d /drivers/target | |
parent | c875a7093f0479215cf9bf51356d7638f2ec5746 (diff) |
block: kill off q->flush_flags
Now that we converted everything to the newer block write cache
interface, kill off the queue flush_flags and queueable flush
entries.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_iblock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c index 026a758e5778..7c4efb4417b0 100644 --- a/drivers/target/target_core_iblock.c +++ b/drivers/target/target_core_iblock.c | |||
@@ -687,10 +687,10 @@ iblock_execute_rw(struct se_cmd *cmd, struct scatterlist *sgl, u32 sgl_nents, | |||
687 | * Force writethrough using WRITE_FUA if a volatile write cache | 687 | * Force writethrough using WRITE_FUA if a volatile write cache |
688 | * is not enabled, or if initiator set the Force Unit Access bit. | 688 | * is not enabled, or if initiator set the Force Unit Access bit. |
689 | */ | 689 | */ |
690 | if (q->flush_flags & REQ_FUA) { | 690 | if (test_bit(QUEUE_FLAG_FUA, &q->queue_flags)) { |
691 | if (cmd->se_cmd_flags & SCF_FUA) | 691 | if (cmd->se_cmd_flags & SCF_FUA) |
692 | rw = WRITE_FUA; | 692 | rw = WRITE_FUA; |
693 | else if (!(q->flush_flags & REQ_FLUSH)) | 693 | else if (!test_bit(QUEUE_FLAG_WC, &q->queue_flags)) |
694 | rw = WRITE_FUA; | 694 | rw = WRITE_FUA; |
695 | else | 695 | else |
696 | rw = WRITE; | 696 | rw = WRITE; |
@@ -836,7 +836,7 @@ static bool iblock_get_write_cache(struct se_device *dev) | |||
836 | struct block_device *bd = ib_dev->ibd_bd; | 836 | struct block_device *bd = ib_dev->ibd_bd; |
837 | struct request_queue *q = bdev_get_queue(bd); | 837 | struct request_queue *q = bdev_get_queue(bd); |
838 | 838 | ||
839 | return q->flush_flags & REQ_FLUSH; | 839 | return test_bit(QUEUE_FLAG_WC, &q->queue_flags); |
840 | } | 840 | } |
841 | 841 | ||
842 | static const struct target_backend_ops iblock_ops = { | 842 | static const struct target_backend_ops iblock_ops = { |