From: Andreas Herrmann Date: Mon, 13 Jun 2005 11:20:35 +0000 (+0200) Subject: [SCSI] zfcp: fix bug during adapter shutdown X-Git-Tag: v2.6.13-rc1~90^2~583^2~62^2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1db2c9c0931a53fe013db55fd2ff58859db31e8d;p=pandora-kernel.git [SCSI] zfcp: fix bug during adapter shutdown 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: Andreas Herrmann Signed-off-by: James Bottomley --- Reading git-diff-tree failed