Mike Christie a8ebb056a8 block, drivers, cgroup: use op_is_write helper instead of checking for REQ_WRITE
We currently set REQ_WRITE/WRITE for all non READ IOs
like discard, flush, writesame, etc. In the next patches where we
no longer set up the op as a bitmap, we will not be able to
detect a operation direction like writesame by testing if REQ_WRITE is
set.

This patch converts the drivers and cgroup to use the
op_is_write helper. This should just cover the simple
cases. I did dm, md and bcache in their own patches
because they were more involved.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-06-07 13:41:38 -06:00
..
2016-01-06 08:25:24 -05:00
2016-01-13 19:37:36 -08:00
2011-08-08 11:40:15 +02:00
2014-08-08 15:57:28 -07:00
2016-03-14 09:06:01 -06:00
2015-09-23 11:01:16 -06:00
2016-03-15 15:59:47 -07:00
2016-04-25 19:12:38 -06:00
2013-11-08 09:10:30 -07:00