From: Christoph Hellwig Date: Thu, 3 Mar 2016 15:04:03 +0000 (+0100) Subject: blk-mq: enable polling support by default X-Git-Tag: v4.14-rc1~3603^2^4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e0b60b96ba06d826a2b26e23b1986853a4e5291;p=platform%2Fkernel%2Flinux-rpi.git blk-mq: enable polling support by default 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 Reviewed-by: Stephen Bates Tested-by: Stephen Bates Reviewed-by: Jeff Moyer Signed-off-by: Al Viro --- diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 29189ae..ff33a1a 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -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) {