[Devel] [PATCH rh7 1/9] ploop: deadcode cleanup
Maxim Patlasov
mpatlasov at virtuozzo.com
Thu Jun 23 22:38:21 PDT 2016
From: Dmitry Monakhov <dmonakhov at openvz.org>
Rebase Dima's patch on top of rh7-3.10.0-327.18.2.vz7.14.19:
(rw & REQ_FUA) branch is impossible because REQ_FUA was cleared line above.
Logic was moved to ploop_req_delay_fua_possible() long time ago.
Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>
Signed-off-by: Maxim Patlasov <mpatlasov at virtuozzo.com>
---
drivers/block/ploop/io_direct.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/drivers/block/ploop/io_direct.c b/drivers/block/ploop/io_direct.c
index 50c0ed1..3acae79 100644
--- a/drivers/block/ploop/io_direct.c
+++ b/drivers/block/ploop/io_direct.c
@@ -113,16 +113,6 @@ dio_submit(struct ploop_io *io, struct ploop_request * preq,
rw &= ~(REQ_FLUSH | REQ_FUA);
-
- /* In case of eng_state != COMPLETE, we'll do FUA in
- * ploop_index_update(). Otherwise, we should mark
- * last bio as FUA here. */
- if (rw & REQ_FUA) {
- rw &= ~REQ_FUA;
- if (preq->eng_state == PLOOP_E_COMPLETE)
- postfua = 1;
- }
-
bio_list_init(&bl);
if (iblk == PLOOP_ZERO_INDEX)
More information about the Devel
mailing list