NeilBrown
824bad7b97
NFS: Fix data corruption caused by congestion.
...
when AOP_WRITEPAGE_ACTIVATE is returned (as NFS does when it detects
congestion) it is important that the folio is redirtied.
nfs_writepage_locked() doesn't do this, so files can become corrupted as
writes can be lost.
Note that this is not needed in v6.8 as AOP_WRITEPAGE_ACTIVATE cannot be
returned. It is needed for kernels v5.18..v6.7. Prior to 6.3 the patch
is different as it needs to mention "page", not "folio".
Reported-and-tested-by: Jacek Tomaka <Jacek.Tomaka@poczta.fm >
Fixes: 6df25e5853 ("nfs: remove reliance on bdi congestion")
Signed-off-by: NeilBrown <neilb@suse.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-03-18 12:51:52 +00:00
..
2024-01-25 15:35:18 -08:00
2023-02-15 11:07:54 -05:00
2023-10-18 14:42:09 -04:00
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2023-07-24 10:30:01 +02:00
2023-02-20 09:20:32 -05:00
2023-08-29 17:45:22 -04:00
2022-01-06 14:00:20 -05:00
2023-08-24 13:24:15 -04:00
2022-11-30 05:08:10 -05:00
2021-06-13 19:36:27 -04:00
2024-01-25 15:35:18 -08:00
2024-01-25 15:35:18 -08:00
2023-08-24 13:24:15 -04:00
2022-10-27 15:52:10 -04:00
2023-04-26 09:04:59 -04:00
2023-08-24 13:24:15 -04:00
2023-06-19 12:30:17 -04:00
2023-08-18 10:12:13 -07:00
2023-07-24 10:30:01 +02:00
2021-11-05 14:54:40 -04:00
2023-08-09 08:56:36 +02:00
2024-01-25 15:35:18 -08:00
2021-04-05 09:04:20 -04:00
2023-04-11 13:08:26 -04:00
2023-08-23 15:58:47 -04:00
2022-01-10 11:53:25 +00:00
2022-10-27 15:52:10 -04:00
2023-08-09 08:56:36 +02:00
2019-07-06 14:54:49 -04:00
2019-05-21 10:50:45 +02:00
2023-08-30 11:08:27 -04:00
2023-03-06 09:57:12 +01:00
2023-04-27 19:57:00 -07:00
2023-08-24 13:24:15 -04:00
2022-10-20 10:13:27 +02:00
2023-03-06 09:57:12 +01:00
2023-08-30 11:08:27 -04:00
2023-07-10 14:36:11 +02:00
2023-09-13 11:51:11 -04:00
2023-07-10 14:36:11 +02:00
2017-11-02 11:10:55 +01:00
2022-11-01 10:04:52 -07:00
2022-10-27 15:52:10 -04:00
2024-01-25 15:35:18 -08:00
2021-05-07 00:26:34 -07:00
2021-11-07 09:23:14 -05:00
2021-11-07 09:23:14 -05:00
2023-09-27 15:16:40 -04:00
2021-01-10 13:32:39 -05:00
2023-04-13 11:49:35 -07:00
2020-01-15 10:54:33 -05:00
2023-02-14 15:43:57 -05:00
2022-11-27 22:09:59 -05:00
2023-08-23 15:58:47 -04:00
2023-10-11 09:37:48 -04:00
2023-06-19 15:10:45 -04:00
2023-08-23 15:58:47 -04:00
2017-11-02 11:10:55 +01:00
2023-05-22 12:34:41 -07:00
2021-04-14 09:36:29 -04:00
2023-04-11 13:08:27 -04:00
2023-04-11 13:08:26 -04:00
2023-08-24 13:24:15 -04:00
2023-08-30 14:31:31 -04:00
2024-01-25 15:35:18 -08:00
2023-02-14 14:22:32 -05:00
2022-02-25 18:50:13 -05:00
2023-08-23 15:58:47 -04:00
2023-08-31 12:47:16 +02:00
2022-05-09 16:36:48 -04:00
2023-04-13 11:49:35 -07:00
2023-08-19 10:26:29 -04:00
2023-06-19 15:04:13 -04:00
2022-11-27 22:10:00 -05:00
2024-03-18 12:51:52 +00:00