Song Liu
2e38a37f23
md/r5cache: disable write back for degraded array
...
write-back cache in degraded mode introduces corner cases to the array.
Although we try to cover all these corner cases, it is safer to just
disable write-back cache when the array is in degraded mode.
In this patch, we disable writeback cache for degraded mode:
1. On device failure, if the array enters degraded mode, raid5_error()
will submit async job r5c_disable_writeback_async to disable
writeback;
2. In r5c_journal_mode_store(), it is invalid to enable writeback in
degraded mode;
3. In r5c_try_caching_write(), stripes with s->failed>0 will be handled
in write-through mode.
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
2017-01-24 11:26:06 -08:00
..
2016-12-17 13:02:00 -07:00
2016-12-08 14:13:15 -05:00
2016-12-08 22:01:47 -08: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-12-14 11:01:00 -08:00
2014-01-14 23:23:03 -05:00
2016-06-10 15:15:44 -04:00
2016-12-16 00:13:41 +02:00
2016-11-21 09:52:02 -05:00
2016-03-10 17:12:12 -05:00
2016-09-22 11:15:02 -04:00
2016-09-22 11:15:02 -04:00
2016-12-08 19:42:37 -05:00
2014-01-16 13:44:11 -05:00
2016-09-22 11:15:02 -04:00
2016-11-21 09:52:03 -05:00
2016-06-10 15:15:44 -04:00
2016-12-14 11:01:00 -08:00
2016-02-22 22:34:37 -05:00
2016-08-07 14:41:02 -06:00
2015-11-04 21:19:53 -08:00
2016-01-08 20:03:05 -05:00
2016-12-13 15:01:31 -05:00
2016-11-21 09:51:57 -05:00
2016-12-24 11:46:01 -08:00
2016-06-10 15:15:44 -04:00
2016-07-28 17:38:16 -07:00
2015-10-31 19:06:00 -04:00
2015-04-15 12:10:20 -04:00
2016-10-07 14:42:05 -07:00
2016-11-01 09:43:26 -06:00
2016-12-08 14:13:10 -05:00
2016-02-22 22:34:42 -05:00
2016-02-22 22:34:42 -05:00
2016-12-13 10:19:16 -08:00
2016-12-14 11:01:00 -08:00
2016-08-07 14:41:02 -06:00
2016-08-15 09:23:14 -04:00
2016-12-14 11:01:00 -08:00
2016-09-15 11:16:05 -04:00
2016-02-22 22:34:42 -05:00
2016-11-01 09:43:26 -06:00
2016-01-08 20:03:05 -05:00
2016-08-07 14:41:02 -06:00
2016-06-10 15:15:44 -04:00
2015-06-17 12:40:40 -04:00
2016-08-07 14:41:02 -06:00
2015-10-31 19:06:06 -04:00
2016-06-10 15:15:44 -04:00
2016-12-08 14:13:03 -05:00
2016-07-28 17:38:16 -07:00
2016-07-20 12:43:35 -04:00
2016-07-20 12:43:35 -04:00
2016-08-07 14:41:02 -06:00
2016-07-01 23:29:08 -04:00
2015-12-10 10:39:03 -05:00
2016-11-21 09:52:01 -05:00
2015-12-10 10:39:03 -05:00
2016-08-07 14:41:02 -06:00
2016-12-14 11:01:00 -08:00
2016-07-20 23:49:49 -04:00
2016-01-20 13:52:20 -08:00
2016-11-14 15:17:47 -05:00
2016-11-18 09:32:50 -08:00
2016-06-10 15:15:44 -04:00
2016-09-21 09:09:44 -07:00
2016-05-09 09:24:03 -07:00
2017-01-24 11:20:15 -08:00
2017-01-05 11:45:18 -08:00
2016-12-13 12:40:15 -08:00
2017-01-05 11:45:18 -08:00
2015-08-13 12:31:57 -06:00
2017-01-05 11:45:18 -08:00
2016-11-22 09:13:18 -08:00
2017-01-24 11:26:06 -08:00
2017-01-24 11:26:06 -08:00
2017-01-24 11:26:06 -08:00
2017-01-03 08:56:52 -08:00
2016-11-22 09:14:28 -08:00