mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-03 22:56:58 +00:00
Fix setting trans_task
Some recent refactoring accidentally set the trans task to null instead of the current task. It's not used but until it's removed it should be correct. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ void scoutfs_trans_write_func(struct work_struct *work)
|
||||
int err;
|
||||
|
||||
scoutfs_bio_init_comp(&comp);
|
||||
sbi->trans_task = NULL;
|
||||
sbi->trans_task = current;
|
||||
|
||||
wait_event(sbi->trans_hold_wq,
|
||||
atomic_cmpxchg(&sbi->trans_holds, 0, -1) == 0);
|
||||
|
||||
Reference in New Issue
Block a user