mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Will Deacon <will@kernel.org>
To: Miaohe Lin <linmiaohe@huawei.com>
Cc: ardb@kernel.org, keescook@chromium.org, mingo@kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] lib: fix incomplete comment in refcount_dec_and_lock_irqsave()
Date: Mon, 21 Sep 2020 12:31:43 +0100	[thread overview]
Message-ID: <20200921113143.GD2139@willie-the-truck> (raw)
In-Reply-To: <20200921112358.14841-1-linmiaohe@huawei.com>

On Mon, Sep 21, 2020 at 07:23:58AM -0400, Miaohe Lin wrote:
> The description of arg flags is incomplete. The flags is saved IRQ-flags
> when the @lock is acquired.
> 
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
> ---
>  lib/refcount.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/refcount.c b/lib/refcount.c
> index ebac8b7d15a7..dcfd092f66c7 100644
> --- a/lib/refcount.c
> +++ b/lib/refcount.c
> @@ -161,7 +161,7 @@ EXPORT_SYMBOL(refcount_dec_and_lock);
>   *                                 interrupts if able to decrement refcount to 0
>   * @r: the refcount
>   * @lock: the spinlock to be locked
> - * @flags: saved IRQ-flags if the is acquired
> + * @flags: saved IRQ-flags if the is @lock acquired

This still isn't quite right. If we go with:

  @flags: saved IRQ-flags if @lock is acquired

then:

Acked-by: Will Deacon <will@kernel.org>

Will

  reply	other threads:[~2020-09-21 11:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-21 11:23 Miaohe Lin
2020-09-21 11:31 ` Will Deacon [this message]
2020-09-21 11:41 linmiaohe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200921113143.GD2139@willie-the-truck \
    --to=will@kernel.org \
    --cc=ardb@kernel.org \
    --cc=keescook@chromium.org \
    --cc=linmiaohe@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®