Re: [PATCH] block: null_blk: only set set->nr_maps as 3 if active poll_queues is > 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux