summaryrefslogtreecommitdiffstats
path: root/fs/ceph/addr.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2010-10-26 23:21:26 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-27 01:52:05 +0200
commitd19d5476f4b9f91d2de92b91588bb118beba6c0d (patch)
treeb267c225c2b7507f7e4900676649b20e56e06ba2 /fs/ceph/addr.c
parentoom: rewrite error handling for oom_adj and oom_score_adj tunables (diff)
downloadlinux-d19d5476f4b9f91d2de92b91588bb118beba6c0d.tar.xz
linux-d19d5476f4b9f91d2de92b91588bb118beba6c0d.zip
oom: fix locking for oom_adj and oom_score_adj
The locking order in oom_adjust_write() and oom_score_adj_write() for task->alloc_lock and task->sighand->siglock is reversed, and lockdep notices that irqs could encounter an ABBA scenario. This fixes the locking order so that we always take task_lock(task) prior to lock_task_sighand(task). Signed-off-by: David Rientjes <rientjes@google.com> Reported-by: Andrew Morton <akpm@linux-foundation.org> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Rik van Riel <riel@redhat.com> Cc: Ying Han <yinghan@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ceph/addr.c')
0 files changed, 0 insertions, 0 deletions