diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2023-06-16 12:21:04 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-06-16 12:21:04 -0400 |
commit | af92c02fb2090692f4920ea4b74870940260cf49 (patch) | |
tree | 85d01a2f9b010e232b4317083f63ae854c6e83bf /block | |
parent | 20fce500b232b970e40312a9c97e7f3b6d7a709c (diff) | |
parent | 6d7160c7da6fa3010252910a1680c62ababa6c2f (diff) | |
download | lwn-af92c02fb2090692f4920ea4b74870940260cf49.tar.gz lwn-af92c02fb2090692f4920ea4b74870940260cf49.zip |
Merge patch series "scsi: fixes for targets with many LUNs, and scsi_target_block rework"
Martin Wilck <mwilck@suse.com> says:
This patch series addresses some issues we saw in a test setup with a
large number of SCSI LUNs. The first two patches simply increase the
number of available sg and bsg devices. 3-5 fix a large delay we
encountered between blocking a Fibre Channel remote port and the
dev_loss_tmo. 6 renames scsi_target_block() to scsi_block_targets(),
and makes additional changes to this API, as suggested in the review
of the v2 series. 7 improves a warning message.
Link: https://lore.kernel.org/r/20230614103616.31857-1-mwilck@suse.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/bsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bsg.c b/block/bsg.c index 7eca43f33d7f..c53f24243bf2 100644 --- a/block/bsg.c +++ b/block/bsg.c @@ -36,7 +36,7 @@ static inline struct bsg_device *to_bsg_device(struct inode *inode) } #define BSG_DEFAULT_CMDS 64 -#define BSG_MAX_DEVS 32768 +#define BSG_MAX_DEVS (1 << MINORBITS) static DEFINE_IDA(bsg_minor_ida); static struct class *bsg_class; |