xpmem: Fix deadlock in xpmem_remove_process_memory_range()

This reverts commit 2fe5c8de2e.

Change-Id: I8ec84f654aeee7cf83603abb2aca5e90b735e977
This commit is contained in:
Yoshihisa Morizumi
2021-01-08 17:23:32 +09:00
committed by Masamichi Takagi
parent 5dd989450d
commit 865eb37b11
20 changed files with 1470 additions and 4 deletions

View File

@ -1671,8 +1671,6 @@ int xpmem_remove_process_memory_range(
xpmem_att_ref(att);
ihk_rwspinlock_read_lock_noirq(&vm->memory_range_lock);
mcs_rwlock_writer_lock(&att->at_lock, &at_lock);
if (att->flags & XPMEM_FLAG_DESTROYING) {
@ -1751,8 +1749,6 @@ int xpmem_remove_process_memory_range(
out:
mcs_rwlock_writer_unlock(&att->at_lock, &at_lock);
ihk_rwspinlock_read_unlock_noirq(&vm->memory_range_lock);
xpmem_att_deref(att);
XPMEM_DEBUG("return: ret=%d", 0);