From: Christof Schmitt Date: Tue, 8 May 2007 09:15:48 +0000 (+0200) Subject: [SCSI] zfcp: Locking for req_no and req_seq_no X-Git-Tag: v2.6.22-rc1~345^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=801e0ced1891a2b8cad1a435c45234a719b3b6bf;p=pandora-kernel.git [SCSI] zfcp: Locking for req_no and req_seq_no There is a possible race condition while generating the unique request ids and sequence numbers. Both might be read at the same time and have the same value. Fix this by serializing the access through the queue lock of the adapter: First call zfcp_fsf_req_sbal_get that acquires the lock, then read and increment the unique ids. Signed-off-by: Christof Schmitt Signed-off-by: Swen Schillig Signed-off-by: James Bottomley --- Reading git-diff-tree failed