]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-rx-do-not-race-current-packet-20090105
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 5 Jan 2009 23:17:48 +0000 (23:17 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 5 Jan 2009 23:17:48 +0000 (23:17 +0000)
commit0977936c2d3316a6e4f9e58b910b99e15005cfa0
tree225d409818bb8d9ab8b7aecda850efd1967b14c7
parentccd9c5c5399fbc017a3771e6c9539f761dd8b26b
STABLE14-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