mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
activation: keep priority till memlock_unlock
Although it doesn't look like it can be a measurable problem
and costs some time to flip priorities outside of activation window.
So just like with memory locking preserve priority until call
memlock_unlock() appears.
(addition to commit c086dfadc3
).
This commit is contained in:
parent
4e8af1d3aa
commit
455b26b8db
@ -627,8 +627,6 @@ void critical_section_dec(struct cmd_context *cmd, const char *reason)
|
||||
log_debug_activation("Leaving critical section (%s).", reason);
|
||||
} else
|
||||
log_debug_activation("Leaving section (%s).", reason);
|
||||
|
||||
_restore_priority_if_possible(cmd);
|
||||
}
|
||||
|
||||
int critical_section(void)
|
||||
@ -683,6 +681,7 @@ void memlock_reset(void)
|
||||
void memlock_unlock(struct cmd_context *cmd)
|
||||
{
|
||||
_unlock_mem_if_possible(cmd);
|
||||
_restore_priority_if_possible(cmd);
|
||||
}
|
||||
|
||||
int memlock_count_daemon(void)
|
||||
|
Loading…
Reference in New Issue
Block a user