]> git.karo-electronics.de Git - linux-beck.git/commit
target: Use array_zalloc for device_list
authorJörn Engel <joern@logfs.org>
Thu, 15 Mar 2012 19:05:40 +0000 (15:05 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 16 Mar 2012 02:15:51 +0000 (19:15 -0700)
commitf2083241f23722207676025abbb45a301d412e69
treec340376faf2a1eebe0983075adee2a3c8070c064
parent4a5a75f32dcbcd0b2685f74fd4ede26edf8765a9
target: Use array_zalloc for device_list

Turns an order-8 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.

(nab: Fix lio-core patch fuzz)

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_fabric_configfs.c
drivers/target/target_core_pr.c
drivers/target/target_core_stat.c
drivers/target/target_core_tpg.c
drivers/target/target_core_ua.c
include/target/target_core_base.h