[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1681186310.git.yu.c.chen@intel.com>
Date: Tue, 11 Apr 2023 20:18:43 +0800
From: Chen Yu <yu.c.chen@...el.com>
To: "Rafael J. Wysocki" <rafael@...nel.org>,
Len Brown <len.brown@...el.com>
Cc: Ye Bin <yebin10@...wei.com>,
Pavankumar Kondeti <quic_pkondeti@...cinc.com>,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
Chen Yu <yu.c.chen@...el.com>
Subject: [PATCH v2 0/2] Fix test_resume failure by openning swap device non-exclusively
test_resume does not work in current kernel when using swapfile for hibernation.
This is because the swap device should be openned non-exclusively in test_resume mode.
Patch 1 is a preparation for patch 2 and it turns snapshot_test into a global variable.
Patch 2 opens swap device non-exclusively for test_resume mode, and exclusively for manual
hibernation resume.
Change since v1:
Turn snapshot_test into global variable and do not introduce parameters for swsusp_check()
nor load_image_and_restore().
Chen Yu (2):
PM: hibernate: Turn snapshot_test into global variable
PM: hibernate: Do not get block device exclusively in test_resume mode
kernel/power/hibernate.c | 12 +++++++++---
kernel/power/power.h | 1 +
kernel/power/swap.c | 5 +++--
3 files changed, 13 insertions(+), 5 deletions(-)
--
2.25.1
Powered by blists - more mailing lists