Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752604AbbGHVtd (ORCPT ); Wed, 8 Jul 2015 17:49:33 -0400 Received: from cantor2.suse.de ([195.135.220.15]:53766 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750858AbbGHVtY (ORCPT ); Wed, 8 Jul 2015 17:49:24 -0400 Message-ID: <1436392156.12255.99.camel@stgolabs.net> Subject: Re: [PATCH v3] ipc: Modify message queue accounting to not take kernel data structures into account From: Davidlohr Bueso To: Doug Ledford Cc: mtk.manpages@gmail.com, Marcus Gelderie , lkml , David Howells , Alexander Viro , John Duffy , Arto Bendiken , Linux API , Andrew Morton Date: Wed, 08 Jul 2015 14:49:16 -0700 In-Reply-To: <559D7760.1020909@redhat.com> References: <20150622222546.GA32432@ramsey.localdomain> <1435211229.11852.23.camel@stgolabs.net> <1435256484.11852.30.camel@stgolabs.net> <20150706154928.GA19828@ramsey.localdomain> <1436246210.12255.71.camel@stgolabs.net> <559D7760.1020909@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1255 Lines: 28 On Wed, 2015-07-08 at 15:17 -0400, Doug Ledford wrote: > I responded yesterday in the v2 patch thread I believe. In any case, I > think this patch is fine, and can go to stable. This patch doesn't > actually change the math related to the rlimit checks (which is the main > thing I wanted to correct in my original patches), instead it corrects a > mistake I made. At the time, I mistakenly thought that the qsize > included the current message data total + the struct msg_msg size total. > It didn't, it was just the current user data total. I added the rbtree > nodes in order to keep the total accurate but I shouldn't have added the > rbtree nodes to this total because none of the other kernel usage was > previously included. Exactly, this is what I was referring to when I suggested staying clear from rlimit modifications. It just makes 0 sense to account for each rbtree. Thanks for taking a look! > > Acked-by: Doug Ledford Acked-by: Davidlohr Bueso -- 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/