History

mmap locking API: convert nested write lock sites

Add API for nested write locks and convert the few call sites doing that.

Michel Lespinasse committed 6 years ago

Commit aaa2cc51 parent 89154dd3 files · +8 −2Browse files

Showing the changes to kernel/fork.c (1 of 3 files). Show all

Unified · Split

kernel/fork.c+1−1
@@ -501,7 +501,7 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, · 500 unmodified lines
501501 /*
502502 * Not linked in yet - no deadlock potential:
503503 */
504− down_write_nested(&mm->mmap_sem, SINGLE_DEPTH_NESTING);
504+ mmap_write_lock_nested(mm, SINGLE_DEPTH_NESTING);
505505
506506 /* No ordering required: file already has been exposed. */
507507 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t