Skip to content

Commit 9077fb2

Browse files
hreineckemartinkpetersen
authored andcommitted
scsi: bsg: Increase number of devices
Larger setups may need to allocate more than 32k bsg devices, so increase the number of devices to the full range of minor device numbers. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin Wilck <mwilck@suse.com> Link: https://lore.kernel.org/r/20230614103616.31857-2-mwilck@suse.com Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent ac9a786 commit 9077fb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

block/bsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static inline struct bsg_device *to_bsg_device(struct inode *inode)
3636
}
3737

3838
#define BSG_DEFAULT_CMDS 64
39-
#define BSG_MAX_DEVS 32768
39+
#define BSG_MAX_DEVS (1 << MINORBITS)
4040

4141
static DEFINE_IDA(bsg_minor_ida);
4242
static struct class *bsg_class;

0 commit comments

Comments
 (0)