Li Lingfeng
d24c965817
dm: don't lock fs when the map is NULL during suspend or resume
...
[ Upstream commit 2760904d895279f87196f0fa9ec570c79fe6a2e4 ]
As described in commit 38d11da522aa ("dm: don't lock fs when the map is
NULL in process of resume"), a deadlock may be triggered between
do_resume() and do_mount().
This commit preserves the fix from commit 38d11da522aa but moves it to
where it also serves to fix a similar deadlock between do_suspend()
and do_mount(). It does so, if the active map is NULL, by clearing
DM_SUSPEND_LOCKFS_FLAG in dm_suspend() which is called by both
do_suspend() and do_resume().
Fixes: 38d11da522aa ("dm: don't lock fs when the map is NULL in process of resume")
Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-21 16:01:02 +02:00
..
2023-02-09 11:28:14 +01:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-05-11 23:03:41 +09:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-05-11 23:03:41 +09:00
2022-07-07 11:49:34 -04:00
2023-05-11 23:03:41 +09:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-06-21 16:01:02 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2022-05-09 15:39:23 -04:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-05-11 23:03:00 +09:00
2022-05-16 13:35:56 -07:00
2023-06-21 16:00:55 +02:00
2023-06-21 16:00:55 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2022-09-07 16:37:27 -07:00
2023-05-11 23:03:41 +09:00
2023-04-13 16:55:17 +02:00
2023-04-13 16:55:17 +02:00
2022-08-02 14:21:25 -07:00
2023-03-10 09:33:19 +01:00
2022-07-06 06:46:26 -06:00
2022-07-14 12:14:31 -06:00
2023-06-21 16:01:02 +02:00
2023-04-13 16:55:17 +02:00
2023-03-22 13:33:58 +01:00
2022-08-02 14:38:59 -07:00
2022-08-02 17:22:46 -06:00
2023-01-07 11:11:51 +01:00
2022-08-23 14:54:54 -05:00
2022-05-22 23:07:21 -07:00
2022-05-22 23:07:21 -07:00
2023-05-24 17:32:38 +01:00
2022-08-02 17:22:46 -06:00
2022-12-31 13:33:01 +01:00
2022-12-31 13:33:02 +01:00
2022-10-11 17:42:58 -06:00
2022-08-02 17:14:31 -06:00
2022-08-02 17:14:31 -06:00
2023-06-09 10:34:20 +02:00
2022-09-22 00:05:04 -07:00
2023-05-11 23:03:39 +09:00
2022-09-22 00:05:05 -07:00