aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-08-26 04:25:02 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 02:56:09 -0400
commitab780f1ece0dc8d5e8e8e85435acc5e4747ccda3 (patch)
tree4085b6c929a44de229eb5ef13fa2079211ea5512 /include/linux
parentc7c22e4d5c1fdebfac4dba76de7d0338c2b0d832 (diff)
block: inherit CPU completion on bio->rq and rq->rq merges
Somewhat incomplete, as we do allow merges of requests and bios that have different completion CPUs given. This is done on the assumption that a larger IO is still more beneficial than CPU locality. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blkdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 93204bf7b29..12df8efeef1 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -545,6 +545,7 @@ enum {
545#define blk_pm_request(rq) \ 545#define blk_pm_request(rq) \
546 (blk_pm_suspend_request(rq) || blk_pm_resume_request(rq)) 546 (blk_pm_suspend_request(rq) || blk_pm_resume_request(rq))
547 547
548#define blk_rq_cpu_valid(rq) ((rq)->cpu != -1)
548#define blk_sorted_rq(rq) ((rq)->cmd_flags & REQ_SORTED) 549#define blk_sorted_rq(rq) ((rq)->cmd_flags & REQ_SORTED)
549#define blk_barrier_rq(rq) ((rq)->cmd_flags & REQ_HARDBARRIER) 550#define blk_barrier_rq(rq) ((rq)->cmd_flags & REQ_HARDBARRIER)
550#define blk_fua_rq(rq) ((rq)->cmd_flags & REQ_FUA) 551#define blk_fua_rq(rq) ((rq)->cmd_flags & REQ_FUA)