linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv3 0/8] target: Save memory on unused se_dev_entrys and se_luns
@ 2014-06-30 23:39 Andy Grover
  2014-06-30 23:39 ` [PATCHv3 1/8] target: Add locking to some accesses to nacl.device_list Andy Grover
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Andy Grover @ 2014-06-30 23:39 UTC (permalink / raw)
  To: target-devel; +Cc: linux-scsi, hch, nab

Hi nab, hch, and all,

This patchset reduces the amount of memory for se_dev_entry and se_lun
arrays by waiting to allocate array members until they are
created. This patch saves up to 261KB per TPG, and up to 65KB per
ACL. It also fixes a number of locking bugs around these data
structures.

Changes since v2, based on hch's review:
* Fix braces and add precondition checking in
  core_enable_device_list_for_node() in patch 2
* Move busy-loop outside of spinlock in 
  core_disable_device_list_for_node() in patch 3
* Merge patches 5 and 6

Against target-pending/for-next (3.16-rc2).

Thanks -- Regards -- Andy

Andy Grover (8):
  target: Add locking to some accesses to nacl.device_list
  target: Don't unlock/relock tpg_lun_lock in loop in add_node_to_devs
  target: Allocate se_dev_entrys in device list only when used
  target: core_tpg_post_dellun can return void
  target: Change core_dev_del_lun to take a se_lun instead of
    unpacked_lun
  target: Allocate se_luns only when used
  target: Remove core_tpg_release_virtual_lun0 function
  target: Refactor core_enable_device_list_for_node

 drivers/target/sbp/sbp_target.c              |   6 +-
 drivers/target/target_core_device.c          | 313 +++++++++++++--------------
 drivers/target/target_core_fabric_configfs.c |  35 +--
 drivers/target/target_core_internal.h        |   9 +-
 drivers/target/target_core_pr.c              |  40 +++-
 drivers/target/target_core_spc.c             |   2 +-
 drivers/target/target_core_tpg.c             | 189 +++-------------
 drivers/target/target_core_ua.c              |   3 +
 include/target/target_core_base.h            |  17 +-
 9 files changed, 248 insertions(+), 366 deletions(-)

-- 
1.9.3


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

end of thread, other threads:[~2014-09-23 17:02 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-30 23:39 [PATCHv3 0/8] target: Save memory on unused se_dev_entrys and se_luns Andy Grover
2014-06-30 23:39 ` [PATCHv3 1/8] target: Add locking to some accesses to nacl.device_list Andy Grover
2014-07-01  8:48   ` Maurizio Lombardi
2014-07-01 16:15     ` [PATCHv3 9/8] target: Fix return with spinlock held in scsi3_ua_check() Andy Grover
2014-06-30 23:39 ` [PATCHv3 2/8] target: Don't unlock/relock tpg_lun_lock in loop in add_node_to_devs Andy Grover
2014-06-30 23:39 ` [PATCHv3 3/8] target: Allocate se_dev_entrys in device list only when used Andy Grover
2014-06-30 23:39 ` [PATCHv3 4/8] target: core_tpg_post_dellun can return void Andy Grover
2014-06-30 23:39 ` [PATCHv3 5/8] target: Change core_dev_del_lun to take a se_lun instead of unpacked_lun Andy Grover
2014-06-30 23:39 ` [PATCHv3 6/8] target: Allocate se_luns only when used Andy Grover
2014-06-30 23:39 ` [PATCHv3 7/8] target: Remove core_tpg_release_virtual_lun0 function Andy Grover
2014-06-30 23:39 ` [PATCHv3 8/8] target: Refactor core_enable_device_list_for_node Andy Grover
2014-07-29 13:15 ` [PATCHv3 0/8] target: Save memory on unused se_dev_entrys and se_luns Christoph Hellwig
2014-08-22 22:13   ` Andy Grover
2014-09-13 19:55   ` Christoph Hellwig
2014-09-18  7:38     ` Nicholas A. Bellinger
2014-09-18 22:54       ` Andy Grover
2014-09-18 23:17         ` Nicholas A. Bellinger
2014-09-23 17:02           ` Andy Grover

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).