diff options
author | Tejun Heo | 2009-07-03 10:48:16 +0200 |
---|---|---|
committer | Jens Axboe | 2009-09-11 14:33:27 +0200 |
commit | a82afdfcb8c0df09776b6458af6b68fc58b2e87b (patch) | |
tree | d53910e4c2e9d1502cf2a7ce67a67cc54decb7fa /block/blk.h | |
parent | md: Fix "strchr" [drivers/md/dm-log-userspace.ko] undefined! (diff) | |
download | kernel-qcow2-linux-a82afdfcb8c0df09776b6458af6b68fc58b2e87b.tar.gz kernel-qcow2-linux-a82afdfcb8c0df09776b6458af6b68fc58b2e87b.tar.xz kernel-qcow2-linux-a82afdfcb8c0df09776b6458af6b68fc58b2e87b.zip |
block: use the same failfast bits for bio and request
bio and request use the same set of failfast bits. This patch makes
the following changes to simplify things.
* enumify BIO_RW* bits and reorder bits such that BIOS_RW_FAILFAST_*
bits coincide with __REQ_FAILFAST_* bits.
* The above pushes BIO_RW_AHEAD out of sync with __REQ_FAILFAST_DEV
but the matching is useless anyway. init_request_from_bio() is
responsible for setting FAILFAST bits on FS requests and non-FS
requests never use BIO_RW_AHEAD. Drop the code and comment from
blk_rq_bio_prep().
* Define REQ_FAILFAST_MASK which is OR of all FAILFAST bits and
simplify FAILFAST flags handling in init_request_from_bio().
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions