SUNRPC: Optimise rpciod_up()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 14 Jun 2007 21:08:36 +0000 (17:08 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:30 +0000 (23:40 -0400)
commitab418d70e1fceda1e2824c45ba3323a1b1413507
treef7ece30a34a089476f84afc4a95be459a5cb06bf
parentd431a555fcf920e1b5c3e3eba52eb5f5e7836771
SUNRPC: Optimise rpciod_up()

Instead of taking the mutex every time we just need to increment/decrement
rpciod_users, we can optmise by using atomic_inc_not_zero and
atomic_dec_and_test.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/sched.c