Skip to content

Commit 6e0de61

Browse files
committed
blk-mq: remove QUEUE_FLAG_POLL from default MQ flags
We only support polling if we have poll queues now, but the flag is being set by default. Remove the default QUEUE_FLAG_POLL setting, we'll set it in blk_mq_init_allocated_queue() if we have poll queues available for this device. Fixes: 6544d22 ("block: enable polling by default if a poll map is initalized") Reported-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 6544d22 commit 6e0de61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/linux/blkdev.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,7 @@ struct request_queue {
606606
(1 << QUEUE_FLAG_ADD_RANDOM))
607607

608608
#define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \
609-
(1 << QUEUE_FLAG_SAME_COMP) | \
610-
(1 << QUEUE_FLAG_POLL))
609+
(1 << QUEUE_FLAG_SAME_COMP))
611610

612611
void blk_queue_flag_set(unsigned int flag, struct request_queue *q);
613612
void blk_queue_flag_clear(unsigned int flag, struct request_queue *q);

0 commit comments

Comments
 (0)