• A
    [SCSI] zfcp: fix bug during adapter shutdown · 1db2c9c0
    Andreas Herrmann 提交于
    Fixes a race between zfcp_fsf_req_dismiss_all and
    zfcp_qdio_reqid_check. During adapter shutdown it occurred that a
    request was cleaned up twice. First during its normal
    completion. Second when dismiss_all was called.  The fix is to
    serialize access to fsf request list between zfcp_fsf_req_dismiss_all
    and zfcp_qdio_reqid_check and delete a fsf request from the list if
    its completion is triggered.  (Additionally a rwlock was replaced by a
    spinlock and fsf_req_cleanup was eliminated.)
    Signed-off-by: NAndreas Herrmann <aherrman@de.ibm.com>
    Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
    1db2c9c0
zfcp_erp.c 97.8 KB