block: get rid of the WRITE_ODIRECT flag
authorJeff Moyer <jmoyer@redhat.com>
Fri, 2 Oct 2009 22:56:53 +0000 (18:56 -0400)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 28 Oct 2009 08:29:25 +0000 (09:29 +0100)
commit1af60fbd759d31f565552fea315c2033947cfbe6
treee973002ee2496a9537526c8aef111f380071a1a0
parent1a1238a7dd48e48b3bba8f426a1d61c22c80d6d1
block: get rid of the WRITE_ODIRECT flag

Hi,

The WRITE_ODIRECT flag is only used in one place, and that code path
happens to also call blk_run_address_space.  The introduction of this
flag, then, could result in the device being unplugged twice for every
I/O.

Further, with the batching changes in the next patch, we don't want an
O_DIRECT write to imply a queue unplug.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/direct-io.c
include/linux/fs.h