linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] target: Save memory on unused se_dev_entrys and se_luns
@ 2014-03-06 22:15 Andy Grover
  2014-03-06 22:15 ` [PATCH 1/6] target: Allocate se_dev_entrys in device list only when used Andy Grover
                   ` (7 more replies)
  0 siblings, 8 replies; 26+ messages in thread
From: Andy Grover @ 2014-03-06 22:15 UTC (permalink / raw)
  To: target-devel; +Cc: linux-scsi

Hi nab and everyone,

This patchset reduces the amount of memory for se_dev_entry and se_lun
arrays by waiting to allocate array members, and includes some related
simplification patches too. This is a rework of a few patches I submitted
in December in a larger series, but keeping it simple by sticking with
fixed-size arrays for device_list and tpg_lun_list for now.

Testing: created and removed luns and mapped luns, worked ok.

Regards -- Andy

Andy Grover (6):
  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: Rename core_tpg_post_dellun to remove_lun
  target: Allocate se_luns only when used
  target: Remove core_tpg_release_virtual_lun0 function

 drivers/target/sbp/sbp_target.c              |   6 +-
 drivers/target/target_core_device.c          | 206 ++++++++++-----------------
 drivers/target/target_core_fabric_configfs.c |  25 ++--
 drivers/target/target_core_internal.h        |   9 +-
 drivers/target/target_core_spc.c             |   2 +-
 drivers/target/target_core_tpg.c             | 154 +++++---------------
 include/target/target_core_base.h            |  13 +-
 7 files changed, 136 insertions(+), 279 deletions(-)

-- 
1.8.5.3


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

end of thread, other threads:[~2014-03-12 19:04 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 22:15 [PATCH 0/6] target: Save memory on unused se_dev_entrys and se_luns Andy Grover
2014-03-06 22:15 ` [PATCH 1/6] target: Allocate se_dev_entrys in device list only when used Andy Grover
2014-03-07 10:33   ` Christoph Hellwig
2014-03-06 22:15 ` [PATCH 2/6] target: core_tpg_post_dellun can return void Andy Grover
2014-03-06 22:15 ` [PATCH 3/6] target: Change core_dev_del_lun to take a se_lun instead of unpacked_lun Andy Grover
2014-03-07 10:35   ` Christoph Hellwig
2014-03-07 18:20     ` Andy Grover
2014-03-06 22:15 ` [PATCH 4/6] target: Rename core_tpg_post_dellun to remove_lun Andy Grover
2014-03-06 22:15 ` [PATCH 5/6] target: Allocate se_luns only when used Andy Grover
2014-03-07 10:41   ` Christoph Hellwig
2014-03-07 18:12     ` Andy Grover
2014-03-07 18:22       ` Christoph Hellwig
2014-03-07 18:31         ` Andy Grover
2014-03-12 19:04         ` Nicholas A. Bellinger
2014-03-06 22:15 ` [PATCH 6/6] target: Remove core_tpg_release_virtual_lun0 function Andy Grover
2014-03-07 17:50 ` [PATCH 7/6] target: Do not allocate device_list and tpg_lun_list arrays separately Andy Grover
2014-03-10 22:45 ` [PATCHv2 0/9] target: Save memory on unused se_dev_entrys and se_luns Andy Grover
2014-03-10 22:45   ` [PATCHv2 1/9] target: Add locking to some accesses to nacl.device_list Andy Grover
2014-03-10 22:45   ` [PATCHv2 2/9] target: Don't unlock/relock tpg_lun_lock in loop in add_node_to_devs Andy Grover
2014-03-10 22:45   ` [PATCHv2 3/9] target: Allocate se_dev_entrys in device list only when used Andy Grover
2014-03-10 22:45   ` [PATCHv2 4/9] target: core_tpg_post_dellun can return void Andy Grover
2014-03-10 22:45   ` [PATCHv2 5/9] target: Change core_dev_del_lun to take a se_lun instead of unpacked_lun Andy Grover
2014-03-10 22:45   ` [PATCHv2 6/9] target: Rename core_tpg_post_dellun to remove_lun Andy Grover
2014-03-10 22:45   ` [PATCHv2 7/9] target: Allocate se_luns only when used Andy Grover
2014-03-10 22:45   ` [PATCHv2 8/9] target: Remove core_tpg_release_virtual_lun0 function Andy Grover
2014-03-10 22:45   ` [PATCHv2 9/9] target: Refactor core_enable_device_list_for_node 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).