It's useless to check for preq->req_rw & REQ_FUA after: preq->req_rw &= ~REQ_FUA;
Signed-off-by: Maxim Patlasov <mpatla...@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)) _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel