From: Nicholas Bellinger Date: Thu, 21 May 2015 04:21:08 +0000 (-0700) Subject: target: Drop se_lun->lun_active for existing percpu lun_ref X-Git-Tag: omap-for-v4.2/fixes-rc1^2~8^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e37d042cfcb003b885bb4c531cd6f07f62647d1;p=pandora-kernel.git target: Drop se_lun->lun_active for existing percpu lun_ref With se_port_t and t10_alua_tg_pt_gp_member being absored into se_lun, there is no need for an extra atomic_t based reference count for PR ALL_TG_PT=1 and ALUA access state transition. Go ahead and use the existing percpu se_lun->lun_ref instead, and convert the two special cases to percpu_ref_tryget_live() to avoid se_lun if transport_clear_lun_ref() has already been invoked to shutdown the se_lun. Cc: Christoph Hellwig Reviewed-by: Hannes Reinecke Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed