Lines Matching +full:on +full:- +full:the +full:- +full:fly
1 // SPDX-License-Identifier: GPL-2.0
5 * Helper routines for the NFS client caches
30 MODULE_PARM_DESC(cache_getent, "Path to the client cache upcall program");
33 "the cache upcall is assumed to have failed");
44 cd->name, in nfs_cache_upcall()
48 int ret = -EACCES; in nfs_cache_upcall()
54 * Disable the upcall mechanism if we're getting an ENOENT or in nfs_cache_upcall()
55 * EACCES error. The admin can re-enable it on the fly by using in nfs_cache_upcall()
56 * sysfs to set the 'cache_getent' parameter once the problem in nfs_cache_upcall()
59 if (ret == -ENOENT || ret == -EACCES) in nfs_cache_upcall()
70 if (refcount_dec_and_test(&dreq->count)) in nfs_cache_defer_req_put()
80 complete(&dreq->completion); in nfs_dns_cache_revisit()
89 dreq->deferred_req.revisit = nfs_dns_cache_revisit; in nfs_dns_cache_defer()
90 refcount_inc(&dreq->count); in nfs_dns_cache_defer()
92 return &dreq->deferred_req; in nfs_dns_cache_defer()
101 init_completion(&dreq->completion); in nfs_cache_defer_req_alloc()
102 refcount_set(&dreq->count, 1); in nfs_cache_defer_req_alloc()
103 dreq->req.defer = nfs_dns_cache_defer; in nfs_cache_defer_req_alloc()
110 if (wait_for_completion_timeout(&dreq->completion, in nfs_cache_wait_for_upcall()
112 return -ETIMEDOUT; in nfs_cache_wait_for_upcall()
122 ret = sunrpc_cache_register_pipefs(dir, cd->name, 0600, cd); in nfs_cache_register_sb()