block: enable rq CPU completion affinity by default
authorJens Axboe <jens.axboe@oracle.com>
Thu, 3 Sep 2009 18:06:47 +0000 (20:06 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 11 Sep 2009 12:34:33 +0000 (14:34 +0200)
Test results here look good, and on big OLTP runs it has also shown
to significantly increase cycles attributed to the database and
cause a performance boost.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
include/linux/blkdev.h

index 98b45633a27e97e84dc4b4dd0b30c2a808d1c935..8bf1a10e4d881c31938ae261d502fb3cfdd027cb 100644 (file)
@@ -463,7 +463,8 @@ struct request_queue
 
 #define QUEUE_FLAG_DEFAULT     ((1 << QUEUE_FLAG_IO_STAT) |            \
                                 (1 << QUEUE_FLAG_CLUSTER) |            \
-                                (1 << QUEUE_FLAG_STACKABLE))
+                                (1 << QUEUE_FLAG_STACKABLE)    |       \
+                                (1 << QUEUE_FLAG_SAME_COMP))
 
 static inline int queue_is_locked(struct request_queue *q)
 {