On Dec 24, 2021 / 09:08, Ming Lei wrote: > 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: 2bfdbe8b7ebd ("null_blk: allow zero poll queues") > Reported-by: Shinichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> Thanks for the fix. It looks good to me. Also, I confirmed the divide zero exception is avoided with this patch. Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> -- Best Regards, Shin'ichiro Kawasaki