]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: remove unused ldlm_completion_ast_async()
authorNeilBrown <neilb@suse.com>
Thu, 29 Mar 2018 04:26:48 +0000 (15:26 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:46:39 +0000 (14:46 +0200)
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>
drivers/staging/lustre/lustre/include/lustre_dlm.h
drivers/staging/lustre/lustre/ldlm/ldlm_request.c

index 239aa2b1268fdd711856d00170c99d61d5c5d1d2..7407acf60cf85dd03947cf36e19421a6c7d39eff 100644 (file)
@@ -1227,7 +1227,6 @@ int ldlm_lock_change_resource(struct ldlm_namespace *, struct ldlm_lock *,
  * processing.
  * @{
  */
-int ldlm_completion_ast_async(struct ldlm_lock *lock, __u64 flags, void *data);
 int ldlm_completion_ast(struct ldlm_lock *lock, __u64 flags, void *data);
 /** @} ldlm_local_ast */
 
index c3c9186b74ceef12d9e3ae35c5540e4e8288fa49..be43958e409071e6cf4dbf284764a209ea69d9a1 100644 (file)
@@ -191,29 +191,6 @@ static int ldlm_completion_tail(struct ldlm_lock *lock, void *data)
        return result;
 }
 
-/**
- * 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:
  *