]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita682f5c95c5f57db7db699e38c2a0fc543d82653
tree16f5609916d35c98bc2272f6d8163ce4ba5f4c8e
parent9c87a5f220c5883802ffdbd433617807686c2ec3
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