null_blk: allow zero poll queues
authorMing Lei <ming.lei@redhat.com>
Fri, 3 Dec 2021 02:39:35 +0000 (10:39 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Dec 2021 02:57:47 +0000 (19:57 -0700)
commit2bfdbe8b7ebd17b5331071071a910fbabc64b436
tree30e8f65fd9c4a87d92c5eadd0702468924e619f4
parent6050fa4c84cc93ae509f5105f585a429dffc5633
null_blk: allow zero poll queues

There isn't any reason to not allow zero poll queues from user
viewpoint.

Also sometimes we need to compare io poll between poll mode and irq
mode, so not allowing poll queues is bad.

Fixes: 15dfc662ef31 ("null_blk: Fix handling of submit_queues and poll_queues attributes")
Cc: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20211203023935.3424042-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c