Lines Matching refs:l_ctx
99 nfs_iocounter_wait(struct nfs_lock_context *l_ctx) in nfs_iocounter_wait() argument
101 return wait_var_event_killable(&l_ctx->io_count, in nfs_iocounter_wait()
102 !atomic_read(&l_ctx->io_count)); in nfs_iocounter_wait()
115 nfs_async_iocounter_wait(struct rpc_task *task, struct nfs_lock_context *l_ctx) in nfs_async_iocounter_wait() argument
117 struct inode *inode = d_inode(l_ctx->open_context->dentry); in nfs_async_iocounter_wait()
120 if (atomic_read(&l_ctx->io_count) > 0) { in nfs_async_iocounter_wait()
125 if (atomic_read(&l_ctx->io_count) == 0) { in nfs_async_iocounter_wait()
316 struct nfs_lock_context *l_ctx; in nfs_create_request() local
326 l_ctx = nfs_get_lock_context(ctx); in nfs_create_request()
327 if (IS_ERR(l_ctx)) { in nfs_create_request()
329 return ERR_CAST(l_ctx); in nfs_create_request()
331 req->wb_lock_context = l_ctx; in nfs_create_request()
332 atomic_inc(&l_ctx->io_count); in nfs_create_request()
390 struct nfs_lock_context *l_ctx = req->wb_lock_context; in nfs_clear_request() local
396 if (l_ctx != NULL) { in nfs_clear_request()
397 if (atomic_dec_and_test(&l_ctx->io_count)) { in nfs_clear_request()
398 wake_up_var(&l_ctx->io_count); in nfs_clear_request()
402 nfs_put_lock_context(l_ctx); in nfs_clear_request()