All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next 0/3] ext4: Using scope-based resource management function
@ 2024-08-23  6:18 Li Zetao
  2024-08-23  6:18 ` [PATCH -next 1/3] ext4: Use scoped()/scoped_guard() to drop read_lock()/unlock pair Li Zetao
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Li Zetao @ 2024-08-23  6:18 UTC (permalink / raw)
  To: tytso, adilger.kernel; +Cc: lizetao1, linux-ext4

Hi all,

This patch set is dedicated to using scope-based resource management
functions to replace the direct use of lock/unlock methods, so that
developers can focus more on using resources in a certain scope and
avoid overly focusing on resource leakage issues.

At the same time, some functions can remove the controversial goto
label(eg: patch 3), which usually only releases resources and then
exits the function. After replacement, these functions can exit
directly without worrying about resources not being released.

This patch set has been tested by fsstress for a long time and no
problems were found.

Thanks,
Li Zetao.

Li Zetao (3):
  ext4: Use scoped()/scoped_guard() to drop read_lock()/unlock pair
  ext4: Use scoped()/scoped_guard() to drop write_lock()/unlock pair
  ext4: Use scoped()/scoped_guard() to drop rcu_read_lock()/unlock pair

 fs/ext4/block_validity.c |  27 +++--
 fs/ext4/ext4.h           |   3 +-
 fs/ext4/extents_status.c |  67 +++++--------
 fs/ext4/fast_commit.c    |   3 +-
 fs/ext4/inode.c          |  14 ++-
 fs/ext4/mballoc.c        | 208 +++++++++++++++++----------------------
 fs/ext4/resize.c         |  20 ++--
 fs/ext4/super.c          |  29 +++---
 8 files changed, 158 insertions(+), 213 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-11-08 11:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23  6:18 [PATCH -next 0/3] ext4: Using scope-based resource management function Li Zetao
2024-08-23  6:18 ` [PATCH -next 1/3] ext4: Use scoped()/scoped_guard() to drop read_lock()/unlock pair Li Zetao
2024-08-23  6:18 ` [PATCH -next 2/3] ext4: Use scoped()/scoped_guard() to drop write_lock()/unlock pair Li Zetao
2024-08-23  6:18 ` [PATCH -next 3/3] ext4: Use scoped()/scoped_guard() to drop rcu_read_lock()/unlock pair Li Zetao
2024-08-28 21:34   ` kernel test robot
2024-11-07  4:16 ` [PATCH -next 0/3] ext4: Using scope-based resource management function Theodore Ts'o
2024-11-07 21:00   ` Andreas Dilger
2024-11-08 11:06   ` Jan Kara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.