]> git.proxmox.com Git - mirror_zfs.git/commit
OpenZFS 9434 - Speculative prefetch is blocked by device removal code
authorAlexander Motin <mav@FreeBSD.org>
Tue, 3 Apr 2018 18:57:15 +0000 (14:57 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 30 Apr 2018 20:05:55 +0000 (13:05 -0700)
commit20507534d4ede14d4dd82c99fc8d461704ce7419
tree22ff8609fe61018956e336264504cf19db885328
parenteb201f50ac02a2b5cbfe7274cb6274ef767002da
OpenZFS 9434 - Speculative prefetch is blocked by device removal code

Device removal code does not set spa_indirect_vdevs_loaded for pools
that never experienced device removal.  At least one visual consequence
of it is completely blocked speculative prefetcher.  This patch sets
the variable in such situations.

Authored by: Alexander Motin <mav@FreeBSD.org>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Prashanth Sreenivasa <pks@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tim Chase <tim@chase2k.com>
Approved by: Matt Ahrens <mahrens@delphix.com>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/9434
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/16127b627b
Closes #7480
module/zfs/vdev_removal.c