summaryrefslogtreecommitdiff
path: root/kernel/freezer.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2011-08-03 23:21:04 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-04 00:25:20 (GMT)
commitdfc428b656c4693a2334a8d9865b430beddb562a (patch)
treead8aa91d2e3c5e9cedc5f4efb2e04a86b4a0784e /kernel/freezer.c
parent12b3e038e5bb4860c17d001e92a6fa9964c0a7b9 (diff)
downloadlinux-fsl-qoriq-dfc428b656c4693a2334a8d9865b430beddb562a.tar.xz
taskstats: add_del_listener() shouldn't use the wrong node
1. Commit 26c4caea9d69 "don't allow duplicate entries in listener mode" changed add_del_listener(REGISTER) so that "next_cpu:" can reuse the listener allocated for the previous cpu, this doesn't look exactly right even if minor. Change the code to kfree() in the already-registered case, this case is unlikely anyway so the extra kmalloc_node() shouldn't hurt but looke more correct and clean. 2. use the plain list_for_each_entry() instead of _safe() to scan listeners->list. 3. Remove the unneeded INIT_LIST_HEAD(&s->list), we are going to list_add(&s->list). Signed-off-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Vasiliy Kulikov <segoon@openwall.com> Cc: Balbir Singh <bsingharora@gmail.com> Reviewed-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/freezer.c')
0 files changed, 0 insertions, 0 deletions