All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: [memcg:since-3.4 98/99] mm/oom_kill.c:343:27: sparse: context imbalance in 'select_bad_process' - wr
Date: Wed, 11 Jul 2012 14:35:45 +0000	[thread overview]
Message-ID: <20120711143545.GA28535@localhost> (raw)

Hi David,

There are new sparse warnings show up in

tree:   git://github.com/mstsxfx/memcg-devel.git since-3.4
head:   2a6e6a4f421b0e721a59ec5c3abe2df931a2ad32
commit: 7f5e01c90d7e49045455e70f42ea1496fd87deaf [98/99] mm, oom: reduce dependency on tasklist_lock

All sparse warnings:

  mm/oom_kill.c:140:20: sparse: context imbalance in 'find_lock_task_mm' - wrong count at exit
  mm/oom_kill.c:198:28: sparse: context imbalance in 'oom_badness' - unexpected unlock
+ mm/oom_kill.c:343:27: sparse: context imbalance in 'select_bad_process' - wrong count at exit
+ mm/oom_kill.c:400:9: sparse: context imbalance in 'dump_tasks' - different lock contexts for basic block
  mm/memcontrol.c:4257:21: sparse: incompatible types in comparison expression (different address spaces)
  mm/memcontrol.c:4259:21: sparse: incompatible types in comparison expression (different address spaces)
  mm/memcontrol.c:5377:31: sparse: incompatible types in comparison expression (different address spaces)

vim +343 mm/oom_kill.c
   340	 *
   341	 * (not docbooked, we don't want this one cluttering up the manual)
   342	 */
 > 343	static struct task_struct *select_bad_process(unsigned int *ppoints,
   344			unsigned long totalpages, const nodemask_t *nodemask,
   345			bool force_kill)
   346	{

This return is not handled by the patch:

   363                 case OOM_SCAN_ABORT:
   364                         return ERR_PTR(-1UL);

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation

                 reply	other threads:[~2012-07-11 14:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120711143545.GA28535@localhost \
    --to=fengguang.wu@intel.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.