| From: Andrew Morton <akpm@linux-foundation.org> |
| Subject: userfaultfd-do-not-block-on-locking-a-large-folio-with-raised-refcount-fix |
| Date: Wed Feb 26 01:50:26 PM PST 2025 |
| |
| reflow comment to 80 cols, s/end/end up/ |
| |
| Cc: Suren Baghdasaryan <surenb@google.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| mm/userfaultfd.c | 10 +++++----- |
| 1 file changed, 5 insertions(+), 5 deletions(-) |
| |
| --- a/mm/userfaultfd.c~userfaultfd-do-not-block-on-locking-a-large-folio-with-raised-refcount-fix |
| +++ a/mm/userfaultfd.c |
| @@ -1272,11 +1272,11 @@ retry: |
| |
| locked = folio_trylock(folio); |
| /* |
| - * We avoid waiting for folio lock with a raised refcount |
| - * for large folios because extra refcounts will result in |
| - * split_folio() failing later and retrying. If multiple |
| - * tasks are trying to move a large folio we can end |
| - * livelocking. |
| + * We avoid waiting for folio lock with a raised |
| + * refcount for large folios because extra refcounts |
| + * will result in split_folio() failing later and |
| + * retrying. If multiple tasks are trying to move a |
| + * large folio we can end up livelocking. |
| */ |
| if (!locked && folio_test_large(folio)) { |
| spin_unlock(src_ptl); |
| _ |