block: add a op_is_flush helper
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Jan 2017 15:30:47 +0000 (08:30 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 16:01:45 +0000 (09:01 -0700)
commitf73f44eb00cb136990cfb7d40e436c13d7669ec8
treee0a5cc16d9373eec0346538fe073f0c0b08133bf
parentc13660a08c8b3bb49def4374bfd414aaaa564662
block: add a op_is_flush helper

This centralizes the checks for bios that needs to be go into the flush
state machine.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
block/blk-mq-sched.c
block/blk-mq.c
drivers/md/bcache/request.c
drivers/md/dm-cache-target.c
drivers/md/dm-thin.c
include/linux/blk_types.h