linux-stable/drivers/block/null_blk
Ming Lei 19768f80cf block: null_blk: only set set->nr_maps as 3 if active poll_queues is > 0
It isn't correct to set set->nr_maps as 3 if g_poll_queues is > 0 since
we can change it via configfs for null_blk device created there, so only
set it as 3 if active poll_queues is > 0.

Fixes divide zero exception reported by Shinichiro.

Fixes: 2bfdbe8b7e ("null_blk: allow zero poll queues")
Reported-by: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://lore.kernel.org/r/20211224010831.1521805-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-12-23 22:05:50 -07:00
..
Kconfig
main.c block: null_blk: only set set->nr_maps as 3 if active poll_queues is > 0 2021-12-23 22:05:50 -07:00
Makefile
null_blk.h null_blk: Fix handling of submit_queues and poll_queues attributes 2021-10-29 06:55:39 -06:00
trace.c
trace.h block: remove the ->rq_disk field in struct request 2021-11-29 06:41:29 -07:00
zoned.c drivers/block/null_blk/main: Fix a double free in null_init. 2021-04-26 09:04:40 -06:00