Message ID | 1587061357-122619-1-git-send-email-yang.shi@linux.alibaba.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mm: shmem: disable interrupt when acquiring info->lock in userfaultfd_copy path | expand |
diff --git a/mm/shmem.c b/mm/shmem.c index d722eb8..762da6a 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -2399,11 +2399,11 @@ static int shmem_mfill_atomic_pte(struct mm_struct *dst_mm, lru_cache_add_anon(page); - spin_lock(&info->lock); + spin_lock_irq(&info->lock); info->alloced++; inode->i_blocks += BLOCKS_PER_PAGE; shmem_recalc_inode(inode); - spin_unlock(&info->lock); + spin_unlock_irq(&info->lock); inc_mm_counter(dst_mm, mm_counter_file(page)); page_add_file_rmap(page, false);