summaryrefslogtreecommitdiff
path: root/include/asm-avr32/atomic.h
diff options
context:
space:
mode:
authorRalph Campbell <ralph.campbell@qlogic.com>2007-10-19 22:04:10 (GMT)
committerRoland Dreier <rolandd@cisco.com>2007-10-30 17:57:24 (GMT)
commitfffbfeaa680e2b87a591e141f2aa7e9e91184956 (patch)
tree6a087d79165f626e6ad13dddf4dfb17ba128d1f4 /include/asm-avr32/atomic.h
parent96db0e0335c7981911bd7efc5c79e82d2358c0fc (diff)
downloadlinux-fsl-qoriq-fffbfeaa680e2b87a591e141f2aa7e9e91184956.tar.xz
IB/ipath: Fix a race where s_last is updated without lock held
There is a small window where a send work queue entry could be overwritten by ib_post_send() because s_last is updated before the entry is read. This patch closes the window by acquiring the lock and updating the last send work queue entry index after reading the wr_id. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/asm-avr32/atomic.h')
0 files changed, 0 insertions, 0 deletions