Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[email protected]> Signed-off-by: Swen Schillig <[email protected]> Signed-off-by: James Bottomley <[email protected]>
- Loading branch information