Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZIL: Reduce scope of zl_issuer_lock.
Before this change ZIL copied all log data while holding the lock. It caused huge lock contention on workloads with many big parallel writes. This change splits zil_lwb_write_issue() in two parts: first zil_lwb_write_close() does all necessary log space estimations and block allocations while holding the lock, then zil_lwb_write_issue() does all heavy lifting (memory copying, zio issuing, etc) later and out of the lock. Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc.
- Loading branch information