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 <[email protected]> Signed-off-by: Martin Wilck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Ming Lei <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent ac9a786 commit 9077fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)