diff options
author | Huang Ying <[email protected]> | 2023-04-17 07:59:29 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-04-21 14:52:02 -0700 |
commit | 851ae6424697d1c4f085cb878c88168923ebcad1 (patch) | |
tree | 7301954bb19740773ca5fa4079cf7688a1c2e6e0 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 686ea6e61da61e46ae7068f73167ca26e0c67efb (diff) |
migrate_pages_batch: fix statistics for longterm pin retry
In commit fd4a7ac32918 ("mm: migrate: try again if THP split is failed due
to page refcnt"), if the THP splitting fails due to page reference count,
we will retry to improve migration successful rate. But the failed
splitting is counted as migration failure and migration retry, which will
cause duplicated failure counting. So, in this patch, this is fixed via
undoing the failure counting if we decide to retry. The patch is tested
via failure injection.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: fd4a7ac32918 ("mm: migrate: try again if THP split is failed due to page refcnt")
Signed-off-by: "Huang, Ying" <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Cc: Alistair Popple <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Yang Shi <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions