+ mm-swapfilec-do-not-skip-lowest_bit-in-scan_swap_map-scan-loop.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + mm-swapfilec-do-not-skip-lowest_bit-in-scan_swap_map-scan-loop.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 22 Jan 2014 13:22:20 -0800
The patch titled
Subject: mm/swapfile.c: do not skip lowest_bit in scan_swap_map() scan loop
has been added to the -mm tree. Its filename is
mm-swapfilec-do-not-skip-lowest_bit-in-scan_swap_map-scan-loop.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-swapfilec-do-not-skip-lowest_bit-in-scan_swap_map-scan-loop.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-swapfilec-do-not-skip-lowest_bit-in-scan_swap_map-scan-loop.patch
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/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Jamie Liu <[email protected]>
Subject: mm/swapfile.c: do not skip lowest_bit in scan_swap_map() scan loop
In the second half of scan_swap_map()'s scan loop, offset is set to si->lowest_bit and then incremented before entering the loop for the first time, causing si->swap_map[si->lowest_bit] to be skipped.
---
mm/swapfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/swapfile.c renamed from mm/swapfile.c~mm-swapfilec-do-not-skip-lowest_bit-in-scan_swap_map-scan-loop +2 -1
@@ -616,7 +616,7 @@ scan: } } offset = si->lowest_bit; -while (++offset < scan_base) { +while (offset < scan_base) {if (!si->swap_map[offset]) {spin_lock (&si->lock); goto checks;
@@ -629,6 +629,7 @@ scan:cond_resched (); latency_ration =LATENCY_LIMIT ; } + offset++; }spin_lock (&si->lock);
_
Patches currently in -mm which might be from [email protected] are
mm-swapfilec-do-not-skip-lowest_bit-in-scan_swap_map-scan-loop.patch