“a940f8a2a267fd4ee97b0599aed22bce1a5f15ca”上不存在“packages/uni-migration/package.json”
-
由 Calvin Owens 提交于
These objects can be referenced concurrently throughout the driver, we need a way to make sure threads can't delete them out from under each other. This patch adds the refcount, and refactors the code to use it. Additionally, we cannot iterate over the sas_device_list without holding the lock, or we risk corrupting random memory if items are added or deleted as we iterate. This patch refactors _scsih_probe_sas() to use the sas_device_list in a safe way. Signed-off-by: NCalvin Owens <calvinowens@fb.com> Reviewed-by: NChristoph Hellwig <hch@lst.de> Reviewed-by: NNicholas Bellinger <nab@linux-iscsi.org> Tested-by: NChaitra Basappa <chaitra.basappa@avagotech.com> Acked-by: NSreekanth Reddy <sreekanth.reddy@avagotech.com> Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
d224fe0d