Skip to content

: Convert statically sized structures to kmem_cache

Nicholas A. Bellinger linux-scsi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5: Convert iscsi_queue_req_t to use struct kmem_cachedrivers/lio-core/iscsi_target.c drivers/lio-core/iscsi_target_util.c+20 -100 replies
2/5: Convert iscsi_datain_req_t to use struct kmem_cachedrivers/lio-core/iscsi_target.c drivers/lio-core/iscsi_target_datain_values.c+15 -40 replies
3/5: Convert iscsi_ooo_cmdsn_t to use struct kmem_cachedrivers/lio-core/iscsi_target.c drivers/lio-core/iscsi_target_erl1.c+17 -50 replies
4/5: Convert iscsi_r2t_t to use struct kmem_cachedrivers/lio-core/iscsi_target.c drivers/lio-core/iscsi_target_util.c+15 -30 replies
5/5: Move iscsi_free_all_datain_reqs() to generic locationdrivers/lio-core/iscsi_target.c drivers/lio-core/iscsi_target_util.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [LIO-Target 0/5]: Convert statically sized structures to kmem_cache

Greeings all,

Here are a small series of patches that convert v3.0 LIO-Target data structures that are statically sized at compile time to use struct kmem_cache infrastructure. Also, during the kzalloc()/free -> kmem_cache_zalloc()/kmem_cache_free() conversion process, two memory leaks where observed in different exception patchs, and where fixed.

One was related to iscsi_r2t_t not being freed during ErrorRecoveryLevel=2 for ISCSI_WRITE, and the other was iscsi_datain_req_t for ISCSI_READ not being relased during a NON_EXISTENT_LUN exception, immediately followed by an explict iSCSI Logout.

These patches are against the lio-core-2.6.git tree, and tested on v2.6.28.

http://git.kernel.org/?p=linux/kernel/git/nab/lio-core-2.6.git

[PATCH 1/5] [LIO-Target]: Convert iscsi_queue_req_t to use struct kmem_cache [PATCH 2/5] [LIO-Target]: Convert iscsi_datain_req_t to use struct kmem_cache [PATCH 3/5] [LIO-Target]: Convert iscsi_ooo_cmdsn_t to use struct kmem_cache [PATCH 4/5] [LIO-Target]: Convert iscsi_r2t_t to use struct kmem_cache [PATCH 5/5] [LIO-Target]: Move iscsi_free_all_datain_reqs() to generic location

--nab