dm-buffered: do not call dm_bufio_issue_flush twice dm_bufio_write_dirty_buffers already calls dm_bufio_issue_flush; no need to call it again. Signed-off-by: Mikulas Patocka --- drivers/md/dm-buffered-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/drivers/md/dm-buffered-target.c =================================================================== --- linux-2.6.orig/drivers/md/dm-buffered-target.c +++ linux-2.6/drivers/md/dm-buffered-target.c @@ -63,7 +63,7 @@ static sector_t _sector_mod(struct buffe /* Flush any dirty buffers of @bc out */ static int _buffered_flush(struct buffered_c *bc) { - return dm_bufio_write_dirty_buffers(bc->bufio) ?: dm_bufio_issue_flush(bc->bufio); + return dm_bufio_write_dirty_buffers(bc->bufio); } /* Return total number of blocks for @ti */