ublk: Make ublks_max configurable
authorMike Christie <michael.christie@oracle.com>
Thu, 12 Oct 2023 15:06:00 +0000 (10:06 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 17 Oct 2023 14:27:24 +0000 (08:27 -0600)
commit6eba24aeb5e2fc582dd83021795befc1adaede20
tree28a5d15780ca4c886d949335a0df5f504e4aa3d7
parent56974c07f2c77d302fc311b0c6b95f45be76a3ae
ublk: Make ublks_max configurable

We are converting tcmu applications to ublk, but have systems with up
to 1k devices. This patch allows us to configure the ublks_max from
userspace with the ublks_max modparam.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20231012150600.6198-3-michael.christie@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c