blk-mq: enable polling support by default
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Mar 2016 15:04:03 +0000 (16:04 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 4 Mar 2016 17:20:10 +0000 (12:20 -0500)
Now that applications need to explicitly ask for polling we can enable it
by default in blk-mq drivers.  Note that this will only have an affect
on driver that supply a poll function, which currently only includes nvme.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stephen Bates <stephen.bates@pmcs.com>
Tested-by: Stephen Bates <stephen.bates@pmcs.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/blkdev.h

index 29189aeace19df0650c15e374e60724ce77ac917..ff33a1ab58c9f9469e2688a499e6774f9fbd1142 100644 (file)
@@ -499,7 +499,8 @@ struct request_queue {
 
 #define QUEUE_FLAG_MQ_DEFAULT  ((1 << QUEUE_FLAG_IO_STAT) |            \
                                 (1 << QUEUE_FLAG_STACKABLE)    |       \
-                                (1 << QUEUE_FLAG_SAME_COMP))
+                                (1 << QUEUE_FLAG_SAME_COMP)    |       \
+                                (1 << QUEUE_FLAG_POLL))
 
 static inline void queue_lockdep_assert_held(struct request_queue *q)
 {