Revert "xpmem: Fix deadlock in xpmem_remove_process_memory_range()"

This reverts commit d052acab1d.

Change-Id: I31e982465ef9e0936145f27c8d1587c01737ec81
This commit is contained in:
Masamichi Takagi
2020-06-16 10:38:33 +09:00
parent e774e1b984
commit 2fe5c8de2e
20 changed files with 4 additions and 1470 deletions

View File

@@ -1664,6 +1664,8 @@ 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) {
@@ -1742,6 +1744,8 @@ 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);