[Devel] [PATCH rh7] ploop: io_kaio: fix silly bug in kaio_complete_io_state()
Maxim Patlasov
mpatlasov at virtuozzo.com
Thu Jun 16 17:28:15 PDT 2016
It's useless to check for preq->req_rw & REQ_FUA after:
preq->req_rw &= ~REQ_FUA;
Signed-off-by: Maxim Patlasov <mpatlasov at virtuozzo.com>
---
drivers/block/ploop/io_kaio.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/block/ploop/io_kaio.c b/drivers/block/ploop/io_kaio.c
index 79aa9af..de26319 100644
--- a/drivers/block/ploop/io_kaio.c
+++ b/drivers/block/ploop/io_kaio.c
@@ -71,8 +71,6 @@ static void kaio_complete_io_state(struct ploop_request * preq)
return;
}
- preq->req_rw &= ~REQ_FUA;
-
/* Convert requested fua to fsync */
if (test_and_clear_bit(PLOOP_REQ_FORCE_FUA, &preq->state) ||
test_and_clear_bit(PLOOP_REQ_KAIO_FSYNC, &preq->state))
More information about the Devel
mailing list