xfs: initialize log buf I/O completion wq on log alloc
authorBrian Foster <bfoster@redhat.com>
Tue, 23 Dec 2014 22:46:23 +0000 (09:46 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Dec 2014 22:46:23 +0000 (09:46 +1100)
commit96ab7954bca0eeedfb17094719db1351fba361d3
tree6b94a56c4031e61215a626e475bd23e9137844fe
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
xfs: initialize log buf I/O completion wq on log alloc

Log buffer I/O completion passes through the high priority
m_log_workqueue rather than the default metadata buffer workqueue. The
log buffer wq is initialized at I/O submission time. The log buffers are
reused once initialized, however, so this is not necessary.

Initialize the log buffer I/O completion workqueue pointers once when
the log is allocated and log buffers initialized rather than on every
log buffer I/O submission.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log.c