diff options
| author | 2020-05-01 14:43:03 -0700 | |
|---|---|---|
| committer | 2020-05-07 22:47:21 -0400 | |
| commit | 164ba8d2df66735dd4f00d3b85d898a907fa6982 (patch) | |
| tree | 1ea2b00c2d821d162ac8e0dfbb84537554c08d9d /scripts/const_structs.checkpatch | |
| parent | scsi: target: tcmu: Make pgr_support and alua_support attributes writable (diff) | |
scsi: lpfc: Maintain atomic consistency of queue_claimed flag
A previous change introduced the atomic use of queue_claimed flag for eq's
and cq's. The code works fine, but the clearing of the queue_claimed flag
is not atomic.
Change queue_claimed = 0 into xchg(&queue_claimed, 0) to be consistent for
change under atomicity.
Link: https://lore.kernel.org/r/20200501214310.91713-3-jsmart2021@gmail.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
