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
..
2017-01-06 14:36:30 +01:00
2016-12-13 15:30:50 -08:00
2016-12-24 11:46:01 -08:00
2016-11-30 13:04:31 +01:00
2016-12-31 21:52:07 +01:00
2016-11-29 17:35:14 +02:00
2017-01-10 18:31:55 -08:00
2016-12-16 10:24:44 -08:00
2016-12-25 10:47:44 +01:00
2016-12-24 11:46:01 -08:00
2016-12-25 11:04:12 +01:00
2017-01-06 15:35:27 -08:00
2016-12-25 14:30:04 -08:00
2017-01-06 14:34:52 +01:00
2016-12-24 11:46:01 -08:00
2016-12-27 17:51:36 -08:00
2016-12-18 15:49:10 -08:00
2017-01-03 00:21:45 +01:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2016-12-24 11:46:01 -08:00
2016-12-14 11:14:28 -08:00
2017-01-04 16:38:39 +01:00
2016-11-29 15:51:49 -06:00
2016-12-30 09:11:21 +01:00
2017-01-09 09:47:19 +10:00
2017-01-11 21:55:35 +01:00
2016-12-25 11:04:12 +01:00
2017-01-02 10:15:28 -08:00
2016-12-25 10:47:44 +01:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-13 10:41:53 -08:00
2017-01-02 16:59:44 +01:00
2016-12-29 14:17:40 -05:00
2016-12-25 17:21:22 +01:00
2017-01-06 10:49:36 -08:00
2016-12-25 14:30:04 -08:00
2016-12-24 11:46:01 -08:00
2016-12-25 10:47:44 +01:00
2016-12-24 11:46:01 -08:00
2016-12-13 12:11:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2017-01-24 11:26:06 -08:00
2016-12-25 17:21:22 +01:00
2016-11-30 14:58:00 +01:00
2016-12-13 10:19:16 -08:00
2016-12-24 11:46:01 -08:00
2016-12-19 08:16:26 -08:00
2017-01-04 18:22:44 +01:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2017-01-11 11:15:15 -08:00
2016-12-23 16:11:07 -05:00
2016-12-24 11:46:01 -08:00
2016-12-18 15:49:10 -08:00
2016-12-22 11:54:46 -07:00
2017-01-04 18:22:47 +01:00
2016-12-15 12:46:48 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2016-12-12 18:55:06 -08:00
2016-12-25 10:47:44 +01:00
2016-12-14 10:49:33 -08:00
2016-12-30 14:27:42 +01:00
2016-12-28 12:38:10 +02:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2016-11-30 23:41:33 +01:00
2016-12-12 19:56:15 -08:00
2016-12-15 11:45:13 -08:00
2016-12-19 08:16:26 -08:00
2016-12-30 03:26:31 -08:00
2016-12-15 16:03:25 -08:00
2016-12-30 03:12:11 -08:00
2016-12-25 17:21:22 +01:00
2016-12-25 17:21:22 +01:00
2016-12-24 11:46:01 -08:00
2017-01-10 09:32:14 -08:00
2016-12-12 18:55:08 -08:00
2016-12-16 09:26:42 -08:00
2016-12-14 20:42:45 -08:00
2017-01-03 17:11:50 +01:00
2017-01-10 08:41:30 -08:00
2016-12-13 10:41:53 -08:00
2016-12-13 12:11:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-10 14:57:58 +01:00
2017-01-05 19:38:40 +01:00
2017-01-04 08:34:39 -07:00
2016-12-16 10:24:44 -08:00
2017-01-04 12:58:45 +01:00
2016-12-16 00:13:39 +02:00
2016-12-24 11:27:45 -08:00
2017-01-06 10:53:21 -08:00
2016-12-24 11:46:01 -08:00