nfsd4: simplify bind_conn_to_session locking
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 18 Mar 2013 21:31:30 +0000 (17:31 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Apr 2013 15:48:39 +0000 (11:48 -0400)
commit4f6e6c17733ecf01c05a693ced8349ccf8101fd8
treeece553ed54e04990a9adc08840f0a3b019db7ea5
parentabcdff09a05117112aa22cd84939039655bca710
nfsd4: simplify bind_conn_to_session locking

The locking here is very fiddly, and there's no reason for us to be
setting cstate->session, since this is the only op in the compound.
Let's just take the state lock and drop the reference counting.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c