OSDN Git Service

megaraid_sas: Fix LD/VF affiliation parsing
authorAdam Radford <aradford@gmail.com>
Wed, 9 Jul 2014 22:17:56 +0000 (15:17 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 16 Sep 2014 16:09:52 +0000 (09:09 -0700)
commit4cbfea8865825ad9f38beb627b50b308eb2d92be
treeb7b81fc6255afa9b2f2f969f8086204e861cce50
parente46b0344be9b50e8254ddd74e3c5b439d5fca3ce
megaraid_sas: Fix LD/VF affiliation parsing

The following patch for megaraid_sas fixes the LD/VF affiliation policy parsing
code to account for LD targetId's and Hidden LD's (not yet affiliated with any
Virtual Functions).  This also breaks megasas_get_ld_vf_affiliation() into 2
separate functions:  megasas_get_ld_vf_affiliation_111() and
megasas_get_ld_Vf_affiliation_12() to reduce indentation levels.

Signed-off-by: Adam Radford <aradford@gmail.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/megaraid/megaraid_sas.h
drivers/scsi/megaraid/megaraid_sas_base.c