From 30b088377f9ab1aec574a0a107c144cfa1ffac7c Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Thu, 12 Jan 2017 10:59:19 -0800 Subject: [PATCH] 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 --- kmod/src/trans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod/src/trans.c b/kmod/src/trans.c index e1a96471..6ea4b5f8 100644 --- a/kmod/src/trans.c +++ b/kmod/src/trans.c @@ -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);