Lines Matching refs:dreq
68 void nfs_cache_defer_req_put(struct nfs_cache_defer_req *dreq) in nfs_cache_defer_req_put() argument
70 if (refcount_dec_and_test(&dreq->count)) in nfs_cache_defer_req_put()
71 kfree(dreq); in nfs_cache_defer_req_put()
76 struct nfs_cache_defer_req *dreq; in nfs_dns_cache_revisit() local
78 dreq = container_of(d, struct nfs_cache_defer_req, deferred_req); in nfs_dns_cache_revisit()
80 complete(&dreq->completion); in nfs_dns_cache_revisit()
81 nfs_cache_defer_req_put(dreq); in nfs_dns_cache_revisit()
86 struct nfs_cache_defer_req *dreq; in nfs_dns_cache_defer() local
88 dreq = container_of(req, struct nfs_cache_defer_req, req); in nfs_dns_cache_defer()
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()
97 struct nfs_cache_defer_req *dreq; in nfs_cache_defer_req_alloc() local
99 dreq = kzalloc(sizeof(*dreq), GFP_KERNEL); in nfs_cache_defer_req_alloc()
100 if (dreq) { in nfs_cache_defer_req_alloc()
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()
105 return dreq; in nfs_cache_defer_req_alloc()
108 int nfs_cache_wait_for_upcall(struct nfs_cache_defer_req *dreq) in nfs_cache_wait_for_upcall() argument
110 if (wait_for_completion_timeout(&dreq->completion, in nfs_cache_wait_for_upcall()