summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-21 15:09:10 +0200
committerJens Axboe <axboe@kernel.dk>2022-07-21 10:52:12 -0600
commit5f8bcc837a9640ba4bf5e7b1d7f9b254ea029f47 (patch)
tree2a9daae6b96cb17b9642db35fe3b89f2547c07a3 /drivers/block
parentc229686b26ee5b371bdd7e637f2d18f191861c3e (diff)
ublk: remove UBLK_IO_F_PREFLUSH
REQ_PREFLUSH is turned into REQ_OP_FLUSH by the flush state machine and thus never seen by a blk-mq based driver. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20220721130916.1869719-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/ublk_drv.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/ublk_drv.c b/drivers/block/ublk_drv.c
index b90481b295a7..07913b5bccd9 100644
--- a/drivers/block/ublk_drv.c
+++ b/drivers/block/ublk_drv.c
@@ -392,9 +392,6 @@ static inline unsigned int ublk_req_build_flags(struct request *req)
if (req->cmd_flags & REQ_FUA)
flags |= UBLK_IO_F_FUA;
- if (req->cmd_flags & REQ_PREFLUSH)
- flags |= UBLK_IO_F_PREFLUSH;
-
if (req->cmd_flags & REQ_NOUNMAP)
flags |= UBLK_IO_F_NOUNMAP;