nfsd: abstract out the get and set routines into the fault injection ops
authorJeff Layton <jlayton@primarydata.com>
Wed, 30 Jul 2014 12:27:16 +0000 (08:27 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 5 Aug 2014 14:55:02 +0000 (10:55 -0400)
commitc96223d3b6b2794b6262d1a31d35694760cff5b2
tree16f5609916d35c98bc2272f6d8163ce4ba5f4c8e
parent294ac32e99861f6efee548a6b7afb27c32cd502f
nfsd: abstract out the get and set routines into the fault injection ops

Now that we've added more granular locking in other places, it's time
to address the fault injection code. This code is currently quite
reliant on the client_mutex for protection. Start to change this by
adding a new set of fault injection op vectors.

For now they all use the legacy ones. In later patches we'll add new
routines that can deal with more granular locking.

Also, move some of the printk routines into the callers to make the
results of the operations more uniform.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/fault_inject.c