mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix a thread race in clvmd that could cause lockups on very busy systems
This commit is contained in:
parent
3a615fa11f
commit
e199542bd3
@ -1,5 +1,6 @@
|
||||
Version 2.02.63 -
|
||||
================================
|
||||
Fix another thread race in clvmd.
|
||||
Refactor management of vg->pvs list.
|
||||
Fix lcov rules and generate better coverage report.
|
||||
Improve vg_validate to detect some loops in lists.
|
||||
|
@ -1516,7 +1516,8 @@ static __attribute__ ((noreturn)) void *pre_and_post_thread(void *arg)
|
||||
DEBUGLOG("Waiting to do post command - state = %d\n",
|
||||
client->bits.localsock.state);
|
||||
|
||||
if (client->bits.localsock.state != POST_COMMAND) {
|
||||
if (client->bits.localsock.state != POST_COMMAND &&
|
||||
!client->bits.localsock.finished) {
|
||||
pthread_cond_wait(&client->bits.localsock.cond,
|
||||
&client->bits.localsock.mutex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user