| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] mm/vmscan: Do not block forever at shrink_inactive_list(). |
| From: | Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> |
| Date: | Tue, 20 May 2014 12:54:29 +0900 |
| Cc: | riel@xxxxxxxxxx, kosaki.motohiro@xxxxxxxxxxxxxx, fengguang.wu@xxxxxxxxx, kamezawa.hiroyu@xxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20140520004449.GE18954@dastard> |
| References: | <201405192340.FCD48964.OFQHOOJLVSFFMt@xxxxxxxxxxxxxxxxxxx> <20140520004449.GE18954@dastard> |
Dave Chinner wrote:
> So, XFS should be passing kswapd context to the workqueue allocation
> context. The patch below does this.
>
> Tetsuo-san, when it comes to problems involving XFS, you should
> really CC xfs@xxxxxxxxxxx because very few people really know how
> XFS works and even fewer still know how it is supposed to interact
> with memory reclaim....
Thank you for the patch, but ...
#define PF_KSWAPD 0x00040000 /* I am kswapd */
static inline int current_is_kswapd(void)
{
return current->flags & PF_KSWAPD;
}
I think ((char) (current->flags & 0x00040000)) == 0.
Your patch wants
-args->kswapd = current_is_kswapd();
+args->kswapd = (current_is_kswapd() != 0);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Bug#725971: marked as done (xfsprogs: run dh-autoreconf to update config.{sub,guess} and {libtool,aclocal}.m4), Debian Bug Tracking System |
|---|---|
| Next by Date: | Re: [PATCH] mm/vmscan: Do not block forever at shrink_inactive_list()., Dave Chinner |
| Previous by Thread: | Re: [PATCH] mm/vmscan: Do not block forever at shrink_inactive_list()., Dave Chinner |
| Next by Thread: | Re: [PATCH] mm/vmscan: Do not block forever at shrink_inactive_list()., Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |