All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V4 0/5] scsi: Configure number of LUs reported by 'report-luns'
@ 2014-11-17 15:22 Rob Evers
  2014-11-17 15:22 ` [PATCH V4 1/5] scsi: Fix scsi_report_lun_scan kmalloc flag Rob Evers
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Rob Evers @ 2014-11-17 15:22 UTC (permalink / raw)
  To: linux-scsi

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.

A few minor bug fixes and enhancements are included as well.

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

4rth version changes from 3rd posting:

 - Fix return value on first kmalloc failing in scsi_report_lun_scan

 - Fix bug in put_unaligned_be32 usage

 - Re-order patches to put bug fixes in first

 - Enhance comments

 - Fix checkpatch warnings

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 (5):
  scsi: Fix scsi_report_lun_scan kmalloc flag
  scsi: Fix scsi_report_lun_scan return when kmalloc fails
  scsi: Encapsulate scsi_do_report_luns
  scsi: Change default value of max_report_luns to 16k-1
  scsi: Use set/get_unaligned_be32 in report_luns

 drivers/scsi/scsi_scan.c | 202 +++++++++++++++++++++++++++++------------------
 1 file changed, 125 insertions(+), 77 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-11-20 18:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17 15:22 [PATCH V4 0/5] scsi: Configure number of LUs reported by 'report-luns' Rob Evers
2014-11-17 15:22 ` [PATCH V4 1/5] scsi: Fix scsi_report_lun_scan kmalloc flag Rob Evers
2014-11-20  8:17   ` Christoph Hellwig
2014-11-17 15:22 ` [PATCH V4 2/5] scsi: Fix scsi_report_lun_scan return when kmalloc fails Rob Evers
2014-11-20  8:19   ` Christoph Hellwig
2014-11-17 15:22 ` [PATCH V4 3/5] scsi: Encapsulate scsi_do_report_luns Rob Evers
2014-11-20  8:20   ` Christoph Hellwig
2014-11-17 15:22 ` [PATCH V4 4/5] scsi: Change default value of max_report_luns to 16k-1 Rob Evers
2014-11-20  9:23   ` Christoph Hellwig
2014-11-17 15:22 ` [PATCH V4 5/5] scsi: Use set/get_unaligned_be32 in report_luns Rob Evers
2014-11-20 18:41 ` [PATCH V4 0/5] scsi: Configure number of LUs reported by 'report-luns' Rob Evers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.