From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754837Ab1DOWqM (ORCPT ); Fri, 15 Apr 2011 18:46:12 -0400 Received: from tex.lwn.net ([70.33.254.29]:33302 "EHLO vena.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752634Ab1DOWqK (ORCPT ); Fri, 15 Apr 2011 18:46:10 -0400 Date: Fri, 15 Apr 2011 16:46:08 -0600 From: Jonathan Corbet To: Tony Ibbs Cc: Grant Likely , lkml , Linux-embedded , Tibs at Kynesim , Richard Watts Subject: Re: [PATCH] extra/1 Allow setting the maximum KBUS message size Message-ID: <20110415164608.489d82bf@bike.lwn.net> In-Reply-To: <32934D05-E7A7-4A2C-92EF-96A0580F2234@tonyibbs.co.uk> References: <20110322133640.5d5c88e4@bike.lwn.net> <32934D05-E7A7-4A2C-92EF-96A0580F2234@tonyibbs.co.uk> Organization: LWN.net X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Apr 2011 22:34:53 +0100 Tony Ibbs wrote: > This patch provides mechanisms for setting an absolute maximum message > size at compile time, and a per-device maximum at runtime. It seems like a good step in the right direction. Do you really need to add a bunch more configuration options, though? It seems like a reasonable default and a way to change it (sysfs file, maybe) might be better. Is there a way to cap the total memory used by the kbus subsystem? The kzalloc() fixes seem like a good idea too, BUT: I honestly think that the item at the top of your list, if you want to merge this code, must be to get the user-space API more widely reviewed and accepted. It could, I think, be a big sticking point, and it's something you want to try to address sooner rather than later. That means getting more people to look at the patch, which could be hard. The problem is that, if you wait, they'll only squeal when the code is close to going in, and you could find yourself set back a long way. A good first step might be to CC Andrew Morton on your next posting. Thanks, jon