Searched refs:l_ctx (Results 1 – 11 of 11) sorted by relevance
| /Linux-v5.4/fs/nfs/ |
| D | pagelist.c | 100 nfs_iocounter_wait(struct nfs_lock_context *l_ctx) in nfs_iocounter_wait() argument 102 return wait_var_event_killable(&l_ctx->io_count, in nfs_iocounter_wait() 103 !atomic_read(&l_ctx->io_count)); in nfs_iocounter_wait() 116 nfs_async_iocounter_wait(struct rpc_task *task, struct nfs_lock_context *l_ctx) in nfs_async_iocounter_wait() argument 118 struct inode *inode = d_inode(l_ctx->open_context->dentry); in nfs_async_iocounter_wait() 121 if (atomic_read(&l_ctx->io_count) > 0) { in nfs_async_iocounter_wait() 126 if (atomic_read(&l_ctx->io_count) == 0) { in nfs_async_iocounter_wait() 300 __nfs_create_request(struct nfs_lock_context *l_ctx, struct page *page, in __nfs_create_request() argument 305 struct nfs_open_context *ctx = l_ctx->open_context; in __nfs_create_request() 314 req->wb_lock_context = l_ctx; in __nfs_create_request() [all …]
|
| D | nfs3proc.c | 891 struct nfs_lock_context *l_ctx = data; in nfs3_nlm_alloc_call() local 892 if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) { in nfs3_nlm_alloc_call() 893 get_nfs_open_context(l_ctx->open_context); in nfs3_nlm_alloc_call() 894 nfs_get_lock_context(l_ctx->open_context); in nfs3_nlm_alloc_call() 900 struct nfs_lock_context *l_ctx = data; in nfs3_nlm_unlock_prepare() local 901 if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) in nfs3_nlm_unlock_prepare() 902 return nfs_async_iocounter_wait(task, l_ctx); in nfs3_nlm_unlock_prepare() 909 struct nfs_lock_context *l_ctx = data; in nfs3_nlm_release_call() local 911 if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) { in nfs3_nlm_release_call() 912 ctx = l_ctx->open_context; in nfs3_nlm_release_call() [all …]
|
| D | direct.c | 72 struct nfs_lock_context *l_ctx; /* Lock context info */ member 320 if (dreq->l_ctx != NULL) in nfs_direct_req_free() 321 nfs_put_lock_context(dreq->l_ctx); in nfs_direct_req_free() 548 struct nfs_lock_context *l_ctx; in nfs_file_direct_read() local 571 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_read() 572 if (IS_ERR(l_ctx)) { in nfs_file_direct_read() 573 result = PTR_ERR(l_ctx); in nfs_file_direct_read() 576 dreq->l_ctx = l_ctx; in nfs_file_direct_read() 963 struct nfs_lock_context *l_ctx; in nfs_file_direct_write() local 989 l_ctx = nfs_get_lock_context(dreq->ctx); in nfs_file_direct_write() [all …]
|
| D | file.c | 689 struct nfs_lock_context *l_ctx; in do_unlk() local 698 l_ctx = nfs_get_lock_context(nfs_file_open_context(filp)); in do_unlk() 699 if (!IS_ERR(l_ctx)) { in do_unlk() 700 status = nfs_iocounter_wait(l_ctx); in do_unlk() 701 nfs_put_lock_context(l_ctx); in do_unlk()
|
| D | inode.c | 854 static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) in nfs_init_lock_context() argument 856 refcount_set(&l_ctx->count, 1); in nfs_init_lock_context() 857 l_ctx->lockowner = current->files; in nfs_init_lock_context() 858 INIT_LIST_HEAD(&l_ctx->list); in nfs_init_lock_context() 859 atomic_set(&l_ctx->io_count, 0); in nfs_init_lock_context() 907 void nfs_put_lock_context(struct nfs_lock_context *l_ctx) in nfs_put_lock_context() argument 909 struct nfs_open_context *ctx = l_ctx->open_context; in nfs_put_lock_context() 912 if (!refcount_dec_and_lock(&l_ctx->count, &inode->i_lock)) in nfs_put_lock_context() 914 list_del_rcu(&l_ctx->list); in nfs_put_lock_context() 917 kfree_rcu(l_ctx, rcu_head); in nfs_put_lock_context()
|
| D | nfs4state.c | 989 const struct nfs_lock_context *l_ctx) in nfs4_copy_lock_stateid() argument 995 if (l_ctx == NULL) in nfs4_copy_lock_stateid() 1001 fl_owner = l_ctx->lockowner; in nfs4_copy_lock_stateid() 1002 fl_flock_owner = l_ctx->open_context->flock_owner; in nfs4_copy_lock_stateid() 1042 fmode_t fmode, const struct nfs_lock_context *l_ctx, in nfs4_select_rw_stateid() argument 1051 ret = nfs4_copy_lock_stateid(dst, state, l_ctx); in nfs4_select_rw_stateid()
|
| D | write.c | 1198 struct nfs_lock_context *l_ctx; in nfs_flush_incompatible() local 1214 l_ctx = req->wb_lock_context; in nfs_flush_incompatible() 1217 if (l_ctx && flctx && in nfs_flush_incompatible() 1220 do_flush |= l_ctx->lockowner != current->files; in nfs_flush_incompatible()
|
| D | nfs4_fs.h | 312 const struct nfs_lock_context *l_ctx,
|
| D | nfs4proc.c | 3222 struct nfs_lock_context *l_ctx; in _nfs4_do_setattr() local 3225 l_ctx = nfs_get_lock_context(ctx); in _nfs4_do_setattr() 3226 if (IS_ERR(l_ctx)) in _nfs4_do_setattr() 3227 return PTR_ERR(l_ctx); in _nfs4_do_setattr() 3228 status = nfs4_select_rw_stateid(ctx->state, FMODE_WRITE, l_ctx, in _nfs4_do_setattr() 3230 nfs_put_lock_context(l_ctx); in _nfs4_do_setattr() 5089 const struct nfs_lock_context *l_ctx, in nfs4_set_rw_stateid() argument 5092 return nfs4_select_rw_stateid(ctx->state, fmode, l_ctx, stateid, NULL); in nfs4_set_rw_stateid() 5098 const struct nfs_lock_context *l_ctx, in nfs4_stateid_is_current() argument 5104 if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode) == -EIO) in nfs4_stateid_is_current() [all …]
|
| D | internal.h | 245 int nfs_iocounter_wait(struct nfs_lock_context *l_ctx);
|
| /Linux-v5.4/include/linux/ |
| D | nfs_fs.h | 401 extern void nfs_put_lock_context(struct nfs_lock_context *l_ctx);
|