summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorYang Shi2019-07-12 05:55:29 +0200
committerLinus Torvalds2019-07-12 20:05:43 +0200
commita4985833885b8f568bab90d5dc1886ae68dc82cf (patch)
treeef16789b1a040868968f81508a611fdc3426c9c3 /mm/filemap.c
parent9p: pass the correct prototype to read_cache_page (diff)
downloadkernel-qcow2-linux-a4985833885b8f568bab90d5dc1886ae68dc82cf.tar.gz
kernel-qcow2-linux-a4985833885b8f568bab90d5dc1886ae68dc82cf.tar.xz
kernel-qcow2-linux-a4985833885b8f568bab90d5dc1886ae68dc82cf.zip
mm/filemap.c: correct the comment about VM_FAULT_RETRY
Commit 6b4c9f446981 ("filemap: drop the mmap_sem for all blocking operations") changed when mmap_sem is dropped during filemap page fault and when returning VM_FAULT_RETRY. Correct the comment to reflect the change. Link: http://lkml.kernel.org/r/1556234531-108228-1-git-send-email-yang.shi@linux.alibaba.com Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 1e5e006b8557..d0cf700bf201 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2504,10 +2504,8 @@ static struct file *do_async_mmap_readahead(struct vm_fault *vmf,
*
* vma->vm_mm->mmap_sem must be held on entry.
*
- * If our return value has VM_FAULT_RETRY set, it's because
- * lock_page_or_retry() returned 0.
- * The mmap_sem has usually been released in this case.
- * See __lock_page_or_retry() for the exception.
+ * If our return value has VM_FAULT_RETRY set, it's because the mmap_sem
+ * may be dropped before doing I/O or by lock_page_maybe_drop_mmap().
*
* If our return value does not have VM_FAULT_RETRY set, the mmap_sem
* has not been released.