From 587120830d43104b4a628ea05599f2af578eaf07 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 17 Dec 2019 10:21:42 -0800 Subject: [PATCH] scoutfs: initialize transaction block writer As we shut down the transaction tries to destroy any remaining dirty blocks in its writer context. The block writer context was only initialized by the client as it asked the server for the log trees. This makes sure the writer is always initialized. Signed-off-by: Zach Brown --- kmod/src/trans.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kmod/src/trans.c b/kmod/src/trans.c index 679ef1b1..6bd4c218 100644 --- a/kmod/src/trans.c +++ b/kmod/src/trans.c @@ -508,6 +508,7 @@ int scoutfs_setup_trans(struct super_block *sb) return -ENOMEM; spin_lock_init(&tri->lock); + scoutfs_block_writer_init(sb, &tri->wri); sbi->trans_write_workq = alloc_workqueue("scoutfs_trans", WQ_UNBOUND, 1);