From: Calvin Owens Date: Fri, 14 Aug 2015 01:48:10 +0000 (-0700) Subject: mpt2sas: Refcount fw_events and fix unsafe list usage X-Git-Tag: omap-for-v4.3/fixes-rc1~25^2~16 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=008549f6e8a1dc4aeea4a8d64184909786b27713;p=pandora-kernel.git mpt2sas: Refcount fw_events and fix unsafe list usage The fw_event_work struct is concurrently referenced at shutdown, so add a refcount to protect it, and refactor the code to use it. Additionally, refactor _scsih_fw_event_cleanup_queue() such that it no longer iterates over the list without holding the lock, since _firmware_event_work() concurrently deletes items from the list. Signed-off-by: Calvin Owens Reviewed-by: Christoph Hellwig Reviewed-by: Nicholas Bellinger Tested-by: Chaitra Basappa Acked-by: Sreekanth Reddy Signed-off-by: James Bottomley --- Reading git-diff-tree failed