nfsd: Convert delegation counter to an atomic_long_t type
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 25 Jul 2014 11:34:22 +0000 (07:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 29 Jul 2014 18:49:54 +0000 (14:49 -0400)
commit02a3508dba9a58b7bd77cc91f8e941e2dda94d1d
treee4efbded6d70a555ad54318d2f3c038e3c8cee89
parent2d4a532d385f635ab8243b88db3136bb52a0bc29
nfsd: Convert delegation counter to an atomic_long_t type

We want to convert to an atomic type so that we don't need to lock
across the call to alloc_init_deleg(). Then convert to a long type so
that we match the size of 'max_delegations'.

None of this is a problem today, but it will be once we remove
client_mutex protection.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
This page took 0.02498 seconds and 5 git commands to generate.