commit | 204b27e3de21ac0e1b42e3eaa23a72aaefa53c8c | [log] [tgz] |
---|---|---|
author | Vinayak Menon <vinmenon@codeaurora.org> | Thu May 21 17:12:37 2015 +0530 |
committer | Vinayak Menon <vinmenon@codeaurora.org> | Wed Jul 19 18:41:25 2017 +0530 |
tree | a93bb89f4e3a3680cea1007004d42d3663773748 | |
parent | 31a3271a0dacac44cea84385f5525653fa044cf1 [diff] |
mm: process_reclaim: do not iterate over stale task structs swap_fn iterates through the threads of selected tasks after a rcu_read_unlock which is wrong. But we can't extend the rcu_read_lock since it will result in severe performance issues. So better avoid iterating over the threads. Just lock the group leader and use it further. Change-Id: I36269b1b6619315f33f6f3b49ec73571a66796f2 Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>