[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251224-gaspedal-zufolge-3f3e728f2c8a@brauner>
Date: Wed, 24 Dec 2025 13:56:03 +0100
From: Christian Brauner <brauner@...nel.org>
To: chen zhang <chenzhang@...inos.cn>
Cc: Christian Brauner <brauner@...nel.org>,
linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org,
chenzhang_0901@....com,
viro@...iv.linux.org.uk,
jack@...e.cz
Subject: Re: [PATCH v2] chardev: Switch to guard(mutex) and __free(kfree)
On Mon, 15 Dec 2025 19:15:00 +0800, chen zhang wrote:
> Instead of using the 'goto label; mutex_unlock()' pattern use
> 'guard(mutex)' which will release the mutex when it goes out of scope.
> Use the __free(kfree) cleanup to replace instances of manually
> calling kfree(). Also make some code path simplifications that this
> allows.
>
>
> [...]
Applied to the vfs-7.0.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.0.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.0.misc
[1/1] chardev: Switch to guard(mutex) and __free(kfree)
https://git.kernel.org/vfs/vfs/c/3685744afa4a
Powered by blists - more mailing lists