Skip to content

Configure number of LUs reported by 'report-luns'

Rob Evers linux-scsi 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 9 repliesIn review
  2. v23 patches 3 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Encapsulate scsi_do_report_lunsdrivers/scsi/scsi_scan.c+59 -507 replies
2/4Configure reported lunsdrivers/scsi/scsi_scan.c+68 -210 replies
3/4Change kmallocs in report_luns to use GFP_KERNELdrivers/scsi/scsi_scan.c+2 -20 replies
4/4Use set/get_unaligned_be32 in report_lunsdrivers/scsi/scsi_scan.c+4 -120 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEwan D. Milne
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 0/4] Configure number of LUs reported by 'report-luns'

This patch set retrieves the number of LUs available on a target using the report-luns command. The initial size of the report-luns command is 512 entries, as the previous default initial number was. If more LUs than 511 are present on a target, the report-luns is re-issued with the size indicated in the result of the original report-luns, up to max_report_luns.

The default value of max_report_luns is increased to 16k-1 from 512-1.

3rd version changes from 2nd posting:

- add a patch to use get/put_unaligned_be32() in report-luns code

2nd version changes from first posting:

- Minor tweak added in 2nd patch to use the number of luns reported in the 2nd report-luns command, if it is executed. There is a chance that the number changed between the 1st and 2nd report-luns.

- Add 3rd patch changing kmalloc flag in report luns from GFP_ATOMIC to GFP_KERNEL, as this is more consistent with the allocation flag in blk_alloc_queue_node()

Rob Evers (4):
Encapsulate scsi_do_report_luns Configure reported luns
Change kmallocs in report_luns to use GFP_KERNEL Use set/get_unaligned_be32 in report_luns

 drivers/scsi/scsi_scan.c | 192 +++++++++++++++++++++++++++++------------------
 1 file changed, 120 insertions(+), 72 deletions(-)
Signature · 1 line
1.7.11.7