Skip to content

Commit 48ec833

Browse files
kiryltorvalds
authored andcommitted
Revert "mm/memory.c: share the i_mmap_rwsem"
This reverts commit c8475d1. There are several[1][2] of bug reports which points to this commit as potential cause[3]. Let's revert it until we figure out what's going on. [1] https://lkml.org/lkml/2014/11/14/342 [2] https://lkml.org/lkml/2014/12/22/213 [3] https://lkml.org/lkml/2014/12/9/741 Signed-off-by: Kirill A. Shutemov <[email protected]> Reported-by: Sasha Levin <[email protected]> Acked-by: Davidlohr Bueso <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Peter Zijlstra (Intel) <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Srikar Dronamraju <[email protected]> Cc: Mel Gorman <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 97bf6af commit 48ec833

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,12 +2378,12 @@ void unmap_mapping_range(struct address_space *mapping,
23782378
details.last_index = ULONG_MAX;
23792379

23802380

2381-
i_mmap_lock_read(mapping);
2381+
i_mmap_lock_write(mapping);
23822382
if (unlikely(!RB_EMPTY_ROOT(&mapping->i_mmap)))
23832383
unmap_mapping_range_tree(&mapping->i_mmap, &details);
23842384
if (unlikely(!list_empty(&mapping->i_mmap_nonlinear)))
23852385
unmap_mapping_range_list(&mapping->i_mmap_nonlinear, &details);
2386-
i_mmap_unlock_read(mapping);
2386+
i_mmap_unlock_write(mapping);
23872387
}
23882388
EXPORT_SYMBOL(unmap_mapping_range);
23892389

0 commit comments

Comments
 (0)