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:
Zach Brown
2017-04-18 13:44:53 -07:00
parent c21dc4ec20
commit 30b088377f
+1 -1
View File
@@ -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);