diff options
| author | Li Lingfeng <[email protected]> | 2023-06-01 06:14:23 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2023-06-15 16:46:53 +0000 |
| commit | 2760904d895279f87196f0fa9ec570c79fe6a2e4 (patch) | |
| tree | ba7d9355f7adccdec86305a64483cfc86a14f4ec /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | Linux 6.4-rc2 (diff) | |
| download | kernel-2760904d895279f87196f0fa9ec570c79fe6a2e4.tar.gz kernel-2760904d895279f87196f0fa9ec570c79fe6a2e4.zip | |
dm: don't lock fs when the map is NULL during suspend or resume
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 <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
