diff options
author | Richard Yao <[email protected]> | 2015-07-28 10:22:56 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-01-15 15:38:35 -0800 |
commit | b10695c8f1ce317cd24d99af7998741a35a5ce48 (patch) | |
tree | e75355476113384705fbcfb7e121ad667d851228 /include/sys | |
parent | c96c36fa22ab97f6b3025b356bfca8d9e030d002 (diff) |
Remove fastwrite mutex
The fast write mutex is intended to protect accounting, but it is
redundant because all accounting is performed through atomic operations.
It also serializes all metaslab IO behind a mutex, which introduces a
theoretical scaling regression that the Illumos developers did not like
when we showed this to them. Removing it makes the selection of the
metaslab_group lock free as it is on Illumos. The selection is not quite
the same without the lock because the loop races with IO completions,
but any imbalances caused by this are likely to be corrected by
subsequent metaslab group selections.
Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3643
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/metaslab_impl.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sys/metaslab_impl.h b/include/sys/metaslab_impl.h index 88bda071f..27a53b515 100644 --- a/include/sys/metaslab_impl.h +++ b/include/sys/metaslab_impl.h @@ -69,7 +69,6 @@ struct metaslab_class { uint64_t mc_space; /* total space (alloc + free) */ uint64_t mc_dspace; /* total deflated space */ uint64_t mc_histogram[RANGE_TREE_HISTOGRAM_SIZE]; - kmutex_t mc_fastwrite_lock; }; /* |