diff options
author | NeilBrown <neilb@suse.com> | 2018-03-29 15:26:48 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-23 14:46:39 +0200 |
commit | 9f1e7bb94562f8be63e5cee976ee57c01a850a8c (patch) | |
tree | 71b74ce9254fa296fa1dcce685c857c95b7bea78 /drivers/staging/lustre/lustre/ldlm/ldlm_request.c | |
parent | 186ae2f38ac2761068316a75a58344d59b54b8f9 (diff) | |
download | op-kernel-dev-9f1e7bb94562f8be63e5cee976ee57c01a850a8c.zip op-kernel-dev-9f1e7bb94562f8be63e5cee976ee57c01a850a8c.tar.gz |
staging: lustre: remove unused ldlm_completion_ast_async()
This function is unused.
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/ldlm/ldlm_request.c')
-rw-r--r-- | drivers/staging/lustre/lustre/ldlm/ldlm_request.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_request.c b/drivers/staging/lustre/lustre/ldlm/ldlm_request.c index c3c9186..be43958 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_request.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_request.c @@ -192,29 +192,6 @@ static int ldlm_completion_tail(struct ldlm_lock *lock, void *data) } /** - * Implementation of ->l_completion_ast() for a client, that doesn't wait - * until lock is granted. Suitable for locks enqueued through ptlrpcd, of - * other threads that cannot block for long. - */ -int ldlm_completion_ast_async(struct ldlm_lock *lock, __u64 flags, void *data) -{ - if (flags == LDLM_FL_WAIT_NOREPROC) { - LDLM_DEBUG(lock, "client-side enqueue waiting on pending lock"); - return 0; - } - - if (!(flags & LDLM_FL_BLOCKED_MASK)) { - wake_up(&lock->l_waitq); - return ldlm_completion_tail(lock, data); - } - - LDLM_DEBUG(lock, - "client-side enqueue returned a blocked lock, going forward"); - return 0; -} -EXPORT_SYMBOL(ldlm_completion_ast_async); - -/** * Generic LDLM "completion" AST. This is called in several cases: * * - when a reply to an ENQUEUE RPC is received from the server |