aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/thread_with_file.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org> 2024-02-06 07:38:31 +0000
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2024-02-06 07:38:31 +0000
commit99bd3cb0d12e85d5114425353552121ec8f93adc (patch)
tree63c65ce38b1b1d74f0bac81a45564a51919a4d42 /fs/bcachefs/thread_with_file.c
parentLinux 6.8-rc3 (diff)
parentbcachefs: time_stats: Check for last_event == 0 when updating freq stats (diff)
downloadlinux-99bd3cb0d12e85d5114425353552121ec8f93adc.tar.gz
linux-99bd3cb0d12e85d5114425353552121ec8f93adc.tar.bz2
linux-99bd3cb0d12e85d5114425353552121ec8f93adc.zip
Merge tag 'bcachefs-2024-02-05' of https://evilpiepirate.org/git/bcachefs
Pull bcachefs fixes from Kent Overstreet: "Two serious ones here that we'll want to backport to stable: a fix for a race in the thread_with_file code, and another locking fixup in the subvolume deletion path" * tag 'bcachefs-2024-02-05' of https://evilpiepirate.org/git/bcachefs: bcachefs: time_stats: Check for last_event == 0 when updating freq stats bcachefs: install fd later to avoid race with close bcachefs: unlock parent dir if entry is not found in subvolume deletion bcachefs: Fix build on parisc by avoiding __multi3()
Diffstat (limited to 'fs/bcachefs/thread_with_file.c')
-rw-r--r--fs/bcachefs/thread_with_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/thread_with_file.c b/fs/bcachefs/thread_with_file.c
index b1c867aa2b58..9220d7de10db 100644
--- a/fs/bcachefs/thread_with_file.c
+++ b/fs/bcachefs/thread_with_file.c
@@ -53,9 +53,9 @@ int bch2_run_thread_with_file(struct thread_with_file *thr,
if (ret)
goto err;
- fd_install(fd, file);
get_task_struct(thr->task);
wake_up_process(thr->task);
+ fd_install(fd, file);
return fd;
err:
if (fd >= 0)