[Devel] [PATCH rh7 16/38] ploop: prioritize BAT operations
Andrey Smetanin
asmetanin at virtuozzo.com
Fri May 15 09:48:17 PDT 2015
Ploop uses ->read_page and ->write_page methods of pio_direct to read/write
index table. These operations are rare and usually someone is blocked on them.
Let's give them a priority by setting SYNCIO flag.
Signed-off-by: Maxim Patlasov <MPatlasov at parallels.com>
---
drivers/block/ploop/io_direct.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/block/ploop/io_direct.c b/drivers/block/ploop/io_direct.c
index c18d2f0..e5eb66a 100644
--- a/drivers/block/ploop/io_direct.c
+++ b/drivers/block/ploop/io_direct.c
@@ -1432,7 +1432,7 @@ static void
dio_read_page(struct ploop_io * io, struct ploop_request * preq,
struct page * page, sector_t sec)
{
- dio_io_page(io, READ, preq, page, sec);
+ dio_io_page(io, READ | REQ_SYNC, preq, page, sec);
}
static void
@@ -1444,7 +1444,8 @@ dio_write_page(struct ploop_io * io, struct ploop_request * preq,
return;
}
- dio_io_page(io, WRITE | (fua ? REQ_FUA : 0), preq, page, sec);
+ dio_io_page(io, WRITE | (fua ? REQ_FUA : 0) | REQ_SYNC,
+ preq, page, sec);
}
static int
--
1.9.3
More information about the Devel
mailing list