Skip to content

target: Simplify lu_gp handling code

Andy Grover linux-scsi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2target: Ensure lu_gp_mem->lu_gp is never NULLdrivers/target/target_core_alua.c drivers/target/target_core_configfs.c+4 -50 replies
2/2target: Simplify target_core_store_alua_lu_gpdrivers/target/target_core_configfs.c+13 -330 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] target: Simplify lu_gp handling code

This set changes the behavior added here:

https://lkml.org/lkml/2009/2/12/22

We can simplify code paths dealing with lu_gp if we just have to handle (default_lu_gp vs explicit lu_gp), instead of (default_lu_gp vs explicit lu_gp vs NULL). The only consequence would be that showing logical unit group identifier (target_core_spc.c:358) in vpd83 info couldn't be disabled, and there didn't seem to be a reason I could come up with for why anyone would ever want to disable it - if you don't care, just don't look at it.

Andy Grover (2):
target: Ensure lu_gp_mem->lu_gp is never NULL
target: Simplify target_core_store_alua_lu_gp

 drivers/target/target_core_alua.c     |  6 ++---
 drivers/target/target_core_configfs.c | 47 +++++++++++------------------------
 2 files changed, 16 insertions(+), 37 deletions(-)
Signature · 1 line
1.8.5.3