From: Nicholas Bellinger Date: Thu, 7 Nov 2013 05:03:43 +0000 (-0800) Subject: target: Add percpu refcounting for se_lun access X-Git-Tag: v3.13-rc1~5^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5277797dc4ed873d067477d84e910b39d113f649;p=pandora-kernel.git target: Add percpu refcounting for se_lun access This patch adds percpu refcounting for se_lun access that allows the association of an se_lun + se_cmd in transport_lookup_cmd_lun() to occur without an extra list_head for tracking outstanding I/O during se_lun shutdown. This effectively changes se_lun shutdown logic to wait for outstanding I/O percpu references to complete in transport_lun_remove_cmd() using se_lun->lun_ref_comp, instead of explicitly draining the per se_lun command list and waiting for individual se_cmd descriptor processing to complete. Cc: Kent Overstreet Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed