NeilBrown
f5b67ae86e
md: be extra careful not to take a reference to a Faulty device.
...
It is important that we never increment rdev->nr_pending on a Faulty
device as ->hot_remove_disk() assumes that once the Faulty flag is visible
no code will take a new reference.
Some places take a new reference after only check In_sync. This should
be safe as the two are changed together. However to make the code more
obviously safe, add checks for 'Faulty' as well.
Note: the actual rule is:
Never increment nr_pending if Faulty is set and Blocked is clear,
never clear Faulty, and never set Blocked without holding a reference
through nr_pending.
fix build error (Shaohua)
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
2016-06-13 11:54:21 -07:00
..
2016-04-12 16:00:39 -06:00
2015-12-14 09:26:01 -05:00
2016-05-09 09:24:03 -07:00
2016-05-04 12:39:35 -07:00
2015-07-29 08:55:15 -06:00
2015-05-29 14:19:06 -04:00
2016-01-12 17:11:47 -08:00
2016-04-17 11:24:46 -04:00
2016-03-10 17:12:12 -05:00
2015-11-04 21:19:53 -08:00
2015-06-11 17:13:01 -04:00
2016-03-10 17:12:11 -05:00
2015-06-11 17:13:01 -04:00
2016-03-10 17:12:12 -05:00
2016-03-17 11:22:54 -07:00
2016-02-22 22:34:37 -05:00
2015-10-31 19:06:02 -04:00
2015-11-04 21:19:53 -08:00
2016-01-08 20:03:05 -05:00
2016-02-22 22:34:37 -05:00
2016-01-04 10:29:12 -05:00
2016-05-05 15:25:55 -04:00
2015-11-06 17:50:42 -08:00
2015-10-31 19:06:03 -04:00
2015-10-31 19:06:00 -04:00
2015-04-15 12:10:20 -04:00
2016-02-22 22:34:37 -05:00
2016-05-05 15:25:52 -04:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:37 -05:00
2016-05-13 09:03:51 -04:00
2015-10-31 19:06:01 -04:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:42 -05:00
2016-01-08 20:03:05 -05:00
2016-01-08 20:03:05 -05:00
2016-03-10 17:12:09 -05:00
2015-08-18 17:20:03 -04:00
2015-06-17 12:40:40 -04:00
2015-09-02 16:35:26 -07:00
2015-10-31 19:06:06 -04:00
2015-04-15 12:10:17 -04:00
2016-04-13 13:33:19 -06:00
2016-02-22 11:06:21 -05:00
2016-03-10 17:12:09 -05:00
2015-06-11 17:13:04 -04:00
2016-05-13 09:04:20 -04:00
2016-02-22 22:34:37 -05:00
2015-12-10 10:39:03 -05:00
2016-02-22 22:34:37 -05:00
2015-12-10 10:39:03 -05:00
2015-07-29 08:55:15 -06:00
2016-05-05 15:25:49 -04:00
2016-02-22 22:34:37 -05:00
2016-01-20 13:52:20 -08:00
2016-03-10 17:12:11 -05:00
2015-08-13 12:31:57 -06:00
2016-03-10 17:12:08 -05:00
2016-05-09 09:24:04 -07:00
2016-05-09 09:24:03 -07:00
2016-06-13 11:54:12 -07:00
2016-06-03 16:22:59 -07:00
2016-06-13 11:54:21 -07:00
2016-04-25 08:43:58 -07:00
2015-08-13 12:31:57 -06:00
2016-06-13 11:54:18 -07:00
2015-10-12 01:32:05 -05:00
2016-05-19 17:25:13 -07:00
2016-06-13 11:54:21 -07:00
2016-02-26 09:44:56 -08:00
2016-06-13 11:54:21 -07:00
2015-08-31 19:43:45 +02:00