summaryrefslogtreecommitdiff
path: root/fs/stack.c
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2010-09-09 10:48:21 +0530
committerNiket Sirsi <nsirsi@nvidia.com>2010-12-28 10:35:56 -0800
commit8b31719041662bae54d9acbef4e8c907756cdb6c (patch)
treeaf539e4962930291446de1c0900a24d6c182943f /fs/stack.c
parent1508f7aa5850b1ac02d9876eb5dac34356c86244 (diff)
lowmemorykiller: don't unregister notifier from atomic context
The lowmemorykiller registers an atomic notifier for notfication of when the task is freed. From this atomic notifier callback, it removes the atomic notifier via task_free_unregister(). This is incorrect because atomic_notifier_chain_unregister() calls syncronize_rcu(), which can sleep, which shouldn't be done from an atomic notifier. Fix this by registering the notifier during init, and only unregister it if the lowmemorykiller is unloaded. Change-Id: Ie9cf2f23d31c78e1fe1b9dd2e11af5267832ee94 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Christian Bejram <christian.bejram@stericsson.com> Reviewed-on: http://git-master/r/13943 Reviewed-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Tested-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions