Linux kernel staging patches
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Jeremy Dean Clifton <deaner92@yahoo.com>
Cc: Marc Dietrich <marvin24@gmx.de>,
	ac100@lists.launchpad.net, linux-tegra@vger.kernel.org,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	outreachy@lists.linux.dev, Julia Lawall <julia.lawall@inria.fr>
Subject: Re: [PATCH v2] staging: nvec: use guard(mutex) in nvec_write_sync()
Date: Tue, 13 Oct 2026 08:15:08 +0200	[thread overview]
Message-ID: <2026101335-expansive-veteran-c4d6@gregkh> (raw)
In-Reply-To: <20261012222926.7754-1-deaner92@yahoo.com>

On Mon, Oct 12, 2026 at 10:29:26PM +0000, Jeremy Dean Clifton wrote:
> The three return paths of nvec_write_sync() each release
> sync_write_mutex with explicit unlock calls.
> 
> Use guard(mutex) to unlock the lock automatically on any return
> path.
> 
> This removes the three mutex_unlock() calls.
> 
> No functional change.
> 
> Signed-off-by: Jeremy Dean Clifton <deaner92@yahoo.com>
> ---
> v2:
>  - Reword the commit message to state the motivation and to make
>    clear that removing the mutex_unlock() calls is the result of
>    the change (Julia Lawall).
> v1: https://lore.kernel.org/all/20261012171312.5998-1-deaner92@yahoo.com/

Please read the archives for why I will not take guard() rewrites of
staging drivers (nor do I want to see you use a LLM in here either.)

sorry,

greg k-h

  reply	other threads:[~2026-10-13  6:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20261012222926.7754-1-deaner92.ref@yahoo.com>
2026-10-12 22:29 ` [PATCH v2] staging: nvec: use guard(mutex) in nvec_write_sync() Jeremy Dean Clifton
2026-10-13  6:15   ` Greg Kroah-Hartman [this message]
2026-10-13 15:13     ` Jeremy Clifton
2026-10-15 14:45     ` Jeremy Dean Clifton
2026-10-15 18:04       ` Julia Lawall

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=2026101335-expansive-veteran-c4d6@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=ac100@lists.launchpad.net \
    --cc=deaner92@yahoo.com \
    --cc=julia.lawall@inria.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=linux-tegra@vger.kernel.org \
    --cc=marvin24@gmx.de \
    --cc=outreachy@lists.linux.dev \
    /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