aboutsummaryrefslogtreecommitdiff
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2007-05-08 11:15:48 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-05-08 11:55:19 -0500
commit801e0ced1891a2b8cad1a435c45234a719b3b6bf (patch)
tree9d7b203148f6040c855462d3eff20eae741de2b6 /drivers/s390/scsi/zfcp_def.h
parent1d589edf9eeb60c9c8e62753d05cf4c8e094e5a7 (diff)
[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 <christof.schmitt@de.ibm.com> Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
0 files changed, 0 insertions, 0 deletions