The patch titled Subject: userfaultfd-do-not-block-on-locking-a-large-folio-with-raised-refcount-fix has been added to the -mm mm-hotfixes-unstable branch. Its filename is userfaultfd-do-not-block-on-locking-a-large-folio-with-raised-refcount-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/userfaultfd-do-not-block-on-locking-a-large-folio-with-raised-refcount-fix.patch This patch will later appear in the mm-hotfixes-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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); _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are nfs-fix-nfs_release_folio-to-not-deadlock-via-kcompactd-writeback-fix.patch userfaultfd-do-not-block-on-locking-a-large-folio-with-raised-refcount-fix.patch mm-vmscan-extract-calculated-pressure-balance-as-a-function-fix.patch mm-madvise-split-out-mmap-locking-operations-for-madvise-fix-checkpatch-fixes.patch mm-madvise-remove-redundant-mmap_lock-operations-from-process_madvise-fix.patch lib-plistc-add-shortcut-for-plist_requeue-fix.patch scsi-lpfc-convert-timeouts-to-secs_to_jiffies-fix.patch