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 <zab@versity.com>
This commit is contained in:
Zach Brown
2020-01-17 11:21:36 -08:00
committed by Zach Brown
parent 3978bbd23f
commit 587120830d
+1
View File
@@ -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);