Diff reduction from upstream:
- Properly apply Illumos changeset fc98fea5.
- Eliminate the following counters: l2_write_spa_mismatch l2_write_in_l2 l2_write_io_in_progress l2_write_not_cacheable Because they would keep increasing and is less meaningful for performance characteristic observation.