2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/drivers/scsi/mpt2sas
Calvin Owens 008549f6e8 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>
2015-09-06 10:56:17 -07:00
..
mpi mpt2sas: MPI2 Rev BB (2.00.20) specification and 2.00.35 header files 2015-01-13 16:27:25 +01:00
Kconfig mpt2sas: Copyright in driver sources is updated for year the 2014 2014-09-16 09:14:14 -07:00
Makefile
mpt2sas_base.c mpt2sas, mpt3sas: Abort initialization if no memory I/O resources detected 2015-08-26 10:56:35 -07:00
mpt2sas_base.h mpt2sas: Refcount sas_device objects and fix unsafe list usage 2015-09-06 10:55:18 -07:00
mpt2sas_config.c mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt2sas_ctl.c mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt2sas_ctl.h mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt2sas_debug.h mpt2sas, mpt3sas: Update attribution language to Avago 2015-01-13 16:27:27 +01:00
mpt2sas_scsih.c mpt2sas: Refcount fw_events and fix unsafe list usage 2015-09-06 10:56:17 -07:00
mpt2sas_transport.c mpt2sas: Refcount sas_device objects and fix unsafe list usage 2015-09-06 10:55:18 -07:00