xpmem: Fix deadlock in xpmem_remove_process_memory_range()

Refs: #1330
Change-Id: Ib62e3a7fe2811577ba8cabf174f64827e65c422c
This commit is contained in:
Ken Sato
2019-11-12 15:18:52 +09:00
parent 91ea69cf8f
commit d052acab1d
20 changed files with 1470 additions and 4 deletions

View File

@ -1662,8 +1662,6 @@ int xpmem_remove_process_memory_range(
xpmem_att_ref(att);
ihk_mc_spinlock_lock_noirq(&vm->memory_range_lock);
mcs_rwlock_writer_lock(&att->at_lock, &at_lock);
if (att->flags & XPMEM_FLAG_DESTROYING) {
@ -1742,8 +1740,6 @@ int xpmem_remove_process_memory_range(
out:
mcs_rwlock_writer_unlock(&att->at_lock, &at_lock);
ihk_mc_spinlock_unlock_noirq(&vm->memory_range_lock);
xpmem_att_deref(att);
XPMEM_DEBUG("return: ret=%d", 0);