Re: [PATCH v2 1/6] Target: Use array_zalloc for tpg_lun_list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2012-03-15 at 15:05 -0400, Jörn Engel wrote:
> Turns an order-10 allocation into slab-sized ones, thereby preventing
> allocation failures with memory fragmentation.
> 
> This likely saves memory as well, as the slab allocator can pack objects
> more tightly than the buddy allocator.
> 
> Signed-off-by: Joern Engel <joern@xxxxxxxxx>
> ---
>  drivers/target/target_core_device.c  |    4 +-
>  drivers/target/target_core_tpg.c     |   44 +++++++++++++++++++++++++++------
>  include/target/target_core_backend.h |    2 +
>  include/target/target_core_base.h    |    2 +-
>  4 files changed, 41 insertions(+), 11 deletions(-)
> 

Spoke too soon..  ;)

Nice work Joern.  Patch #1 applied here..

I'm also thinking if bumping TRANSPORT_MAX_LUNS_PER_TPG to a higher
default can be safely considered with this patch in place..

--nab



--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux