* + swap-add-warning-if-swap-slots-cache-failed-to-initialize.patch added to -mm tree
@ 2017-03-28 23:59 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2017-03-28 23:59 UTC (permalink / raw)
To: tim.c.chen, mm-commits
The patch titled
Subject: mm/swap_slots.c: add warning if swap slots cache failed to initialize
has been added to the -mm tree. Its filename is
swap-add-warning-if-swap-slots-cache-failed-to-initialize.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/swap-add-warning-if-swap-slots-cache-failed-to-initialize.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/swap-add-warning-if-swap-slots-cache-failed-to-initialize.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: Tim Chen <tim.c.chen@linux.intel.com>
Subject: mm/swap_slots.c: add warning if swap slots cache failed to initialize
Add a warning diagnostics to user if we failed to allocate swap slots
cache and use it.
Link: http://lkml.kernel.org/r/20170328234827.GA10107@linux.intel.com
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/swap_slots.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff -puN mm/swap_slots.c~swap-add-warning-if-swap-slots-cache-failed-to-initialize mm/swap_slots.c
--- a/mm/swap_slots.c~swap-add-warning-if-swap-slots-cache-failed-to-initialize
+++ a/mm/swap_slots.c
@@ -241,8 +241,11 @@ int enable_swap_slots_cache(void)
ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "swap_slots_cache",
alloc_swap_slot_cache, free_slot_cache);
- if (ret < 0)
+ if (ret < 0) {
+ WARN_ONCE(1, "Cache allocation failed (%s), operate without swap slots cache.\n",
+ __func__);
goto out_unlock;
+ }
swap_slot_cache_initialized = true;
__reenable_swap_slots_cache();
out_unlock:
_
Patches currently in -mm which might be from tim.c.chen@linux.intel.com are
swap-add-warning-if-swap-slots-cache-failed-to-initialize.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-28 23:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28 23:59 + swap-add-warning-if-swap-slots-cache-failed-to-initialize.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.