[PATCH V2] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue

Dan Carpenter dan.carpenter at oracle.com
Mon Aug 3 06:15:56 UTC 2015


On Mon, Aug 03, 2015 at 05:53:22AM +0000, Wang, Biao wrote:
> Consider the following case:
> Task A trigger lmk with a lock held, while task B try to
> get this lock, but unfortunately B is the very culprit task lmk select to
> kill. Then B will never be killed, and A will forever select B to kill.
> Such dead lock will trigger softlock up issue.
> 
> This patch try to pick the next task to break this loop.
> 
> Signed-off-by: Wang Biao <biao.wang at intel.com>
> Reviewed-by: Zhang Di <di.zhang at intel.com>
> Reviewed-by: Dan Carpenter <dan.carpenter at oracle.com>

I don't really feel comfortable saying I reviewed this code.  I just
commented on a few process issues.  I don't know the subsystem well
enough to give it a seal of approval.

> Reviewed-by: Joe Perches <joe at perches.com>

regards,
dan carpenter



More information about the devel mailing list