The patch titled Subject: ipc: account for kmem usage on mqueue and msg has been added to the -mm tree. Its filename is ipc-account-for-kmem-usage-on-mqueue-and-msg.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/ipc-account-for-kmem-usage-on-mqueue-and-msg.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/ipc-account-for-kmem-usage-on-mqueue-and-msg.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Aristeu Rozanski <arozansk@xxxxxxxxxx> Subject: ipc: account for kmem usage on mqueue and msg When kmem accounting switched from account by default to only account if flagged by __GFP_ACCOUNT, IPC mqueue and messages was left out. Link: http://lkml.kernel.org/r/1476806075-1210-1-git-send-email-arozansk@xxxxxxxxxx Signed-off-by: Aristeu Rozanski <arozansk@xxxxxxxxxx> Reported-by: Stefan Schimanski <sttts@xxxxxxxxxx> Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Davidlohr Bueso <dave@xxxxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Vladimir Davydov <vdavydov.dev@xxxxxxxxx> Cc: Stefan Schimanski <sttts@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- ipc/msgutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN ipc/msgutil.c~ipc-account-for-kmem-usage-on-mqueue-and-msg ipc/msgutil.c --- a/ipc/msgutil.c~ipc-account-for-kmem-usage-on-mqueue-and-msg +++ a/ipc/msgutil.c @@ -53,7 +53,7 @@ static struct msg_msg *alloc_msg(size_t size_t alen; alen = min(len, DATALEN_MSG); - msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL); + msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL_ACCOUNT); if (msg == NULL) return NULL; @@ -65,7 +65,7 @@ static struct msg_msg *alloc_msg(size_t while (len > 0) { struct msg_msgseg *seg; alen = min(len, DATALEN_SEG); - seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL); + seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL_ACCOUNT); if (seg == NULL) goto out_err; *pseg = seg; _ Patches currently in -mm which might be from arozansk@xxxxxxxxxx are ipc-account-for-kmem-usage-on-mqueue-and-msg.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html