diff options
| author | Yingjie Gao <gaoyingjie@uniontech.com> | 2026-05-27 12:31:34 +0800 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-05-30 08:26:18 +0200 |
| commit | c3e073894379532c00cca7ba5762e18fafe29da8 (patch) | |
| tree | f6b29b7990bfac656eb1491f4db988f21ce91a0f /kernel/workqueue.c | |
| parent | fcf4faba9f986b3bb528da11913c9ec5d6e8f689 (diff) | |
xfs: fix rtgroup cleanup in CoW fork repair
xrep_cow_find_bad_rt() initializes scrub rtgroup state before the
force-rebuild path calls xrep_cow_mark_file_range(). If that call
fails, the code jumps directly to out_rtg, which skips the scrub
rtgroup cleanup and only drops the local rtgroup reference.
Remove the unnecessary jump so the function falls through to out_sr,
ensuring the realtime cursors, lock state, and sr->rtg reference are
released before returning.
Fixes: fd97fe111208 ("xfs: fix CoW forks for realtime files")
Cc: <stable@vger.kernel.org> # v6.14
Signed-off-by: Yingjie Gao <gaoyingjie@uniontech.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions
