projects
/
platform
/
core
/
system
/
resourced.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e658af6
)
Fix a critical section being too short
31/215531/1
accepted/tizen/unified/20191015.011907
submit/tizen/20191010.143025
submit/tizen/20191011.103233
author
Michal Bloch
<m.bloch@partner.samsung.com>
Thu, 10 Oct 2019 06:57:11 +0000
(08:57 +0200)
committer
Michal Bloch
<m.bloch@partner.samsung.com>
Thu, 10 Oct 2019 06:57:11 +0000
(08:57 +0200)
Change-Id: I51ec823849f273f9f529d33ee5cfdf6395171b6b
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
src/swap/swap.c
patch
|
blob
|
history
diff --git
a/src/swap/swap.c
b/src/swap/swap.c
index
eac3946
..
945a1bb
100644
(file)
--- a/
src/swap/swap.c
+++ b/
src/swap/swap.c
@@
-515,7
+515,6
@@
static int swap_move_inactive_to_swap(struct swap_status_msg *msg)
victim.pai = pai;
g_array_append_val(candidates, victim);
}
- proc_app_list_close();
/*
* Let's consider 50% of inactive apps to be swappable at once.
*/
@@
-536,6
+535,7
@@
static int swap_move_inactive_to_swap(struct swap_status_msg *msg)
msg->type = MEMCG_SWAP;
ret = swap_move_to_cgroup(msg->info, candidates);
out:
+ proc_app_list_close();
g_array_free(candidates, TRUE);
return ret;