diff options
| author | Ming Lei <[email protected]> | 2021-12-24 01:08:31 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-12-24 05:05:50 +0000 |
| commit | 19768f80cf23834e65482f1667ff54192d469fee (patch) | |
| tree | 6c49a365817627a187e73586b3918ee333dc91d0 /fs/btrfs/dev-replace.c | |
| parent | block: remove the rsxx driver (diff) | |
| download | kernel-19768f80cf23834e65482f1667ff54192d469fee.tar.gz kernel-19768f80cf23834e65482f1667ff54192d469fee.zip | |
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: 2bfdbe8b7ebd ("null_blk: allow zero poll queues")
Reported-by: Shinichiro Kawasaki <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Shin'ichiro Kawasaki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
