Kody A Kantor d49d7336dd Disabled resilver_defer feature leads to looping resilvers
When a disk is replaced with another on a pool with the resilver_defer
feature present, but not enabled the resilver activity restarts during
each spa_sync. This patch checks to make sure that the resilver_defer
feature is first enabled before requesting a deferred resilver.

This was originally fixed in illumos-joyent as OS-7982.

Reviewed-by: Chris Dunlop <chris@onthe.net.au>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Signed-off-by: Kody A Kantor <kody@kkantor.com>
External-issue: illumos-joyent OS-7982
Closes #9299 
Closes #9338
2019-09-22 15:25:39 -07:00
..
2019-07-26 10:54:14 -07:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2019-09-05 14:49:49 -07:00
2019-06-19 09:48:12 -07:00
2019-09-05 14:49:49 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2017-10-11 16:54:48 -04:00
2019-05-02 16:46:04 -07:00
2015-01-16 14:41:26 -08:00
2019-09-05 14:49:49 -07:00
2019-09-05 14:49:49 -07:00
2019-06-19 09:48:12 -07:00
2019-09-02 17:56:41 -07:00
2010-08-31 13:41:58 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-07-16 10:11:49 -07:00
2019-06-20 18:29:02 -07:00
2019-09-02 17:56:41 -07:00
2019-06-20 18:29:02 -07:00
2019-09-05 14:49:49 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-05 14:49:49 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-09-05 14:49:49 -07:00
2018-05-29 16:00:33 -07:00
2018-02-13 14:54:54 -08:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2018-02-09 10:08:05 -08:00
2019-07-26 10:54:14 -07:00
2019-09-02 17:56:41 -07:00