Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1201058 > unrolled thread

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

Started by"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
First post2015-08-05 21:00 +0200
Last post2015-08-05 21:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH V3]  staging: android: lowmemorykiller: imporve lmk to  avoid deadlock issue "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org> - 2015-08-05 21:00 +0200

#1201058 — Re: [PATCH V3] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue

From"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Date2015-08-05 21:00 +0200
SubjectRe: [PATCH V3] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue
Message-ID<pUc4W-1s6-5@gated-at.bofh.it>
On Mon, Aug 03, 2015 at 08:26:40AM +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@intel.com>
> Reviewed-by: Zhang Di <di.zhang@intel.com>
> ---
>  drivers/staging/android/lowmemorykiller.c |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Please address Dave's review comments, I'll not take this as-is, sorry.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web