]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Rx: protect rx_conn and rx_call refCount field with rx_refcnt_mutex
authorJeffrey Altman <jaltman@your-file-system.com>
Wed, 22 Sep 2010 23:36:03 +0000 (16:36 -0700)
committerDerrick Brashear <shadow@dementia.org>
Wed, 3 Nov 2010 12:59:41 +0000 (05:59 -0700)
commit2a85a613d58f1d944d4d93181fb8d3143554215a
tree3caf66d0abd45da09956297b50ec8a23156e6f60
parentf4c7651744a64c77688f28879cf67c17db2897ca
Rx: protect rx_conn and rx_call refCount field with rx_refcnt_mutex

Add a new global mutex rx_refcnt_mutex to protect the conn->refCount
and call->refCount in place of relying upon the conn->conn_data_lock
and the call->lock.

This will relieve some lock contention with rx_ReceivePacket().

Reviewed-on: http://gerrit.openafs.org/2837
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 5613ea60fc9431dbc87bc8ad6439f9b5af38af5c)

Change-Id: Ie8e72b1c3d68e698048594b5ceddf90910fbc05e
Reviewed-on: http://gerrit.openafs.org/3249
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/rx/rx.c
src/rx/rx.h
src/rx/rx_globals.h
src/rx/rx_packet.c
src/rx/rx_rdwr.c