1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

activation: also lock memory for clustered locking

Commit  c086dfadc3 missed to lock memory
for clustering suspend part since it's using differnt locking reason.
This commit is contained in:
Zdenek Kabelac 2017-12-04 18:40:37 +01:00
parent 406b566cfc
commit 698483b5a1

View File

@ -602,7 +602,9 @@ static void _unlock_mem_if_possible(struct cmd_context *cmd)
*/ */
void critical_section_inc(struct cmd_context *cmd, const char *reason) void critical_section_inc(struct cmd_context *cmd, const char *reason)
{ {
if (!_critical_section && (strcmp(reason, "suspending") == 0)) { if (!_critical_section &&
((strcmp(reason, "suspending") == 0) ||
(strcmp(reason, "locking for suspend") == 0))) {
/* /*
* Profiles are loaded on-demand so make sure that before * Profiles are loaded on-demand so make sure that before
* entering the critical section all needed profiles are * entering the critical section all needed profiles are