]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Rx: avoid lock churn in rxi_ReceiveAckPacket
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 19 Sep 2010 16:35:03 +0000 (09:35 -0700)
committerDerrick Brashear <shadow@dementia.org>
Mon, 27 Sep 2010 15:29:28 +0000 (08:29 -0700)
commitada57bb70e23fbb5ee52dd456b33c8cdd41885ff
tree436097b4d262cb602c616cfe77a31848daa0fb14
parent16ab9e71926790ef19b5f6695f312ceb01d9e884
Rx: avoid lock churn in rxi_ReceiveAckPacket

rxi_ReceiveAckPacket can acquire and drop the conn_data_lock several
times and acquires and drops the peer_lock unnecessarily.  This patchset
adds a variable to track whether the conn_data_lock is held in order
to avoid the need to drop it and reacquire it based upon conditional
operations.  It also relocates the peer->maxPacketSize computations
in order to consolidate the work performed under the peer_lock.

Change-Id: I0bc9e42e8ef198a04315f9f2df529073ce9dfd03
Reviewed-on: http://gerrit.openafs.org/2781
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit c59ce29602086f795d5fbaef6a5f88fae9dd2dea)
Reviewed-on: http://gerrit.openafs.org/2806
src/rx/rx.c