summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt3sas/mpt3sas_base.c
diff options
context:
space:
mode:
authorSreekanth Reddy <sreekanth.reddy@avagotech.com>2015-11-11 13:00:31 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2015-11-12 01:01:11 +0100
commit146b16c8071f5f6c67895d15beeee1163f5107c4 (patch)
tree468dd22608c91e18f91f5d81b382fedf50123715 /drivers/scsi/mpt3sas/mpt3sas_base.c
parentmpt3sas: Refcount sas_device objects and fix unsafe list usage (diff)
downloadlinux-146b16c8071f5f6c67895d15beeee1163f5107c4.tar.xz
linux-146b16c8071f5f6c67895d15beeee1163f5107c4.zip
mpt3sas: Refcount fw_events and fix unsafe list usage
The fw_event_work struct is concurrently referenced at shutdown. 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. This patch is ported from commit 008549f6e8a1 ("mpt2sas: Refcount fw_events and fix unsafe list usage"). These changes are also required for mpt3sas. Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com> Acked-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpt3sas_base.c')
0 files changed, 0 insertions, 0 deletions