]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-rx-do-not-race-current-packet-20090105
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 5 Jan 2009 23:13:08 +0000 (23:13 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 5 Jan 2009 23:13:08 +0000 (23:13 +0000)
commitbd46d35b07dabd8789be716d989a61904f758ac7
treefb75c26ddc40fb40bcc8bde578e41a1430020108
parentd97ef4b087a6db3dba05d32ac85c7a14c629dfcb
DEVEL15-rx-do-not-race-current-packet-20090105

LICENSE MIT

Throughout rx_rdwr.c functions allocate a register variable 'cp'
which is used to optimize access to call->currentPacket.
Unfortunately, if the call->lock is dropped (for example, CV_WAIT)
the synchronization between the two is lost.  This delta re-syncs
'cp' and call->currentPacket after each location where the call->lock
may be dropped.

(cherry picked from commit 423ab97eee35f57beeb481cac2159d28dea20577)
src/rx/rx_rdwr.c