diff options
author | Calvin Owens <calvinowens@fb.com> | 2015-08-13 18:48:10 -0700 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-09-06 10:56:17 -0700 |
commit | 008549f6e8a1dc4aeea4a8d64184909786b27713 (patch) | |
tree | 7c455324b35c5944e7cb1523d005ae91607564be /drivers/scsi/dpt | |
parent | d224fe0d609734888af63656ddaf3a8352f0a7b5 (diff) |
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 <calvinowens@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nicholas Bellinger <nab@linux-iscsi.org>
Tested-by: Chaitra Basappa <chaitra.basappa@avagotech.com>
Acked-by: Sreekanth Reddy <sreekanth.reddy@avagotech.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/dpt')
0 files changed, 0 insertions, 0 deletions