Received: by 10.213.65.68 with SMTP id h4csp616806imn; Fri, 30 Mar 2018 11:59:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx492eC8BqnPZN8x3zOisk21Ger1JOCRkCN12HKw7IGGD4m1Fdw7/S7J3tLvwwgeYxXNyGIFB X-Received: by 10.98.229.21 with SMTP id n21mr144582pff.158.1522436340034; Fri, 30 Mar 2018 11:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522436340; cv=none; d=google.com; s=arc-20160816; b=IhKj4PhJEj2zsgp26S8Tm/kSqjmAG8XWNH2HOVSnDRuB53N2SjQW0ccA9oQxN5PkAx KVbYNRfQTgp7THcKUmaEZWXvokx6UEAG7d7rwBSjwBugEV0g5gNGBl9Cu+qYkZzLkmt/ eIte6cAgmabYH/JuDnPwLNplM8rj08Ng20Va+jy0F2VKA5ZDeq81/usu/RQ6qiV9yGQU B8+Jr0Z2mP26nZRR6HiCChirC8AGnSuP0YxM8bo5ds6I3JHYN70PEdFaKy4OuLPIzm/B brR2cIJAj8kWurru/n6HmFYofiXFYj/oHVaa3adrM2IKsvcWODUdFcU4CRosDThGdoYg hdIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=ILHVzD4ZCBLOy5WdgXgZbylwzydDbgJpVx/36prDHpM=; b=PlOCERhuOz6Ah1HC66HXHhmCvfl+dzxoGVlIMohMa1SSD0RSb6t1mRE75+Awz8CuO/ wjiQmoBLJ0+tTZsYn5+/bi08tnfXlb14QFAtqsGivSBdIt+INS08I1XqamOVP0060zVk EkSBarrxUcS5iLfS4sriojm6vPkFpq/ui7il9YGtLac9Bh9ha9ODNXTbORhfY31V2GSu rFWhOJoDmZrhaVTieKiWv1U7PLzpTS4IBdSUw5Vdv63bbqoUtM5EMS8Y+4YyneADdUs8 oxOkctFqtYFfjAJ+qWyor8sx8lspi3RJNTJCUEoh5HtRuKqG+14ycfOKRQOxlRlVMHau kDuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=OojnkfcD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o32-v6si4884318pld.320.2018.03.30.11.58.41; Fri, 30 Mar 2018 11:59:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=OojnkfcD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572AbeC3S5O (ORCPT + 99 others); Fri, 30 Mar 2018 14:57:14 -0400 Received: from casper.infradead.org ([85.118.1.10]:46028 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752548AbeC3S5N (ORCPT ); Fri, 30 Mar 2018 14:57:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: Message-ID:In-Reply-To:Subject:cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ILHVzD4ZCBLOy5WdgXgZbylwzydDbgJpVx/36prDHpM=; b=OojnkfcDeBiAtA7Yxj7Imnc6Q CbP56rpZDCWiwLqZO9IE0KW13Zplljnz5qL+8cMq9ICz4lz4Pgta/2WPPm8M7VXm4f0DT4y1A3Giz x1vedzgQDiJruvvtqnplmfDmsr1Bvsqxfytq04cTpIwRoKYtd+9QjD2BhN2N0HykgCYVV22sO/g6O CNuZOt8+9krDHjXkcCSMBkwYpISHK5HbOUVPRSapti/nNZezJpH8V85+0wIL33TJYKf5uXwpzsNiW a9YabeACJSyImguKgePB/K7vZbhaKP9j9C8Ui83IC6z4Dfm1C9wR6ftsH/jkq08fWdc/WeP/Jk+y0 z2Q9K1qrg==; Received: from jsimmons (helo=localhost) by casper.infradead.org with local-esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f1zD2-0002Yw-76; Fri, 30 Mar 2018 18:57:09 +0000 Date: Fri, 30 Mar 2018 19:57:08 +0100 (BST) From: James Simmons To: NeilBrown cc: Oleg Drokin , Greg Kroah-Hartman , Andreas Dilger , Linux Kernel Mailing List , Lustre Development List Subject: Re: [PATCH 02/17] staging: lustre: remove unused ldlm_completion_ast_async() In-Reply-To: <152229760829.27689.12680083968318847851.stgit@noble> Message-ID: References: <152229732768.27689.4800156943561963977.stgit@noble> <152229760829.27689.12680083968318847851.stgit@noble> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180330_195708_258543_19E9A22E X-CRM114-Status: GOOD ( 13.14 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 NO_RELAYS Informational: message was not relayed via SMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > This function is unused. Reviewed-by: James Simmons > Signed-off-by: NeilBrown > --- > drivers/staging/lustre/lustre/include/lustre_dlm.h | 1 - > drivers/staging/lustre/lustre/ldlm/ldlm_request.c | 23 -------------------- > 2 files changed, 24 deletions(-) > > diff --git a/drivers/staging/lustre/lustre/include/lustre_dlm.h b/drivers/staging/lustre/lustre/include/lustre_dlm.h > index 239aa2b1268f..7407acf60cf8 100644 > --- a/drivers/staging/lustre/lustre/include/lustre_dlm.h > +++ b/drivers/staging/lustre/lustre/include/lustre_dlm.h > @@ -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 */ > > diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_request.c b/drivers/staging/lustre/lustre/ldlm/ldlm_request.c > index c3c9186b74ce..be43958e4090 100644 > --- a/drivers/staging/lustre/lustre/ldlm/ldlm_request.c > +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_request.c > @@ -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: > * > > >