nfs: add handling for CB_NOTIFY_LOCK in client
For now, the callback doesn't do anything. Support for that will be added in later patches. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:

committed by
Anna Schumaker

parent
a8ce377a5d
commit
db783688d4
@@ -628,4 +628,16 @@ out:
|
||||
dprintk("%s: exit with status = %d\n", __func__, ntohl(status));
|
||||
return status;
|
||||
}
|
||||
|
||||
__be32 nfs4_callback_notify_lock(struct cb_notify_lock_args *args, void *dummy,
|
||||
struct cb_process_state *cps)
|
||||
{
|
||||
if (!cps->clp) /* set in cb_sequence */
|
||||
return htonl(NFS4ERR_OP_NOT_IN_SESSION);
|
||||
|
||||
dprintk_rcu("NFS: CB_NOTIFY_LOCK request from %s\n",
|
||||
rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
|
||||
|
||||
return htonl(NFS4_OK);
|
||||
}
|
||||
#endif /* CONFIG_NFS_V4_1 */
|
||||
|
Reference in New Issue
Block a user