]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hmm: comment on VM_FAULT_RETRY semantics in handle_mm_fault
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 24 Jul 2019 06:52:58 +0000 (08:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 19:14:40 +0000 (16:14 -0300)
commit24903d33b9c017de4b8c08aeebc548f1f726394b
treee110126f0ec2ba46b4712d2556b19545400e4f67
parent59bcdcb2ececd9bdadb3328db4956fe9e3766e32
mm/hmm: comment on VM_FAULT_RETRY semantics in handle_mm_fault

The magic dropping of mmap_sem when handle_mm_fault returns VM_FAULT_RETRY
is rather subtile.  Add a comment explaining it.

Link: https://lore.kernel.org/r/20190724065258.16603-8-hch@lst.de
Tested-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
[hch: wrote a changelog]
Signed-off-by: Christoph Hellwig <hch@lst.de>
mm/hmm.c