use WRITE_FLUSH instead of REQ_FLUSH
Mikulas Patocka
maintainerPATCH 1/1 use WRITE_FLUSH instead of REQ_FLUSH
Hi Alasdair
Please push this patch to 3.8 kernel. (I already sent it before, but it was forgotten somehow).
Mikulas
---
dm-bufio: use WRITE_FLUSH instead of REQ_FLUSH
Use WRITE_FLUSH instead of REQ_FLUSH to make it consistent with the rest of the kernel. There is no functional change - the kernel accepts either WRITE_FLUSH or REQ_FLUSH.
--- drivers/md/dm-bufio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-bufio.c +1 -1
@@ -1193,7 +1193,7 @@ EXPORT_SYMBOL_GPL(dm_bufio_write_dirty_bint dm_bufio_issue_flush (struct dm_bufio_client *c) {struct dm_io_request io_req = { - .bi_rw =REQ_FLUSH , + .bi_rw =WRITE_FLUSH , .mem.type =DM_IO_KMEM , .mem.ptr.addr =NULL , .client = c->dm_io,
Quoted 7 lines · Mikulas Patocka
Hi Alasdair
Please push this patch to 3.8 kernel. (I already sent it before, but it was forgotten somehow).
Mikulas
Quoted 7 lines
---
dm-bufio: use
WRITE_FLUSHinstead ofREQ_FLUSHUse
WRITE_FLUSHinstead ofREQ_FLUSHto make it consistent with the rest of the kernel. There is no functional change - the kernel accepts eitherWRITE_FLUSHorREQ_FLUSH.
Well the important distinction is the flush bio is originating in dm-bufio whereas other DM targets that test for REQ_FLUSH are just passing the flush through. Saying as much makes the need for this patch more explicit.