Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964869AbXBTNWP (ORCPT ); Tue, 20 Feb 2007 08:22:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964871AbXBTNWP (ORCPT ); Tue, 20 Feb 2007 08:22:15 -0500 Received: from poczta.o2.pl ([193.17.41.142]:49613 "EHLO poczta.o2.pl" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S964869AbXBTNWO (ORCPT ); Tue, 20 Feb 2007 08:22:14 -0500 Date: Tue, 20 Feb 2007 14:25:38 +0100 From: Jarek Poplawski To: Oleg Nesterov Cc: Andrew Morton , "David S\. Miller" , David Howells , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] net/bridge/br_if.c: don't use _WORK_NAR Message-ID: <20070220132538.GG981@ff.dom.local> References: <20070218214359.GA4226@tv-sign.ru> <20070219110021.GA2190@ff.dom.local> <20070219120353.GC91@tv-sign.ru> <20070219132703.GC2190@ff.dom.local> <20070219150445.GC75@tv-sign.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070219150445.GC75@tv-sign.ru> User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 30 On Mon, Feb 19, 2007 at 06:04:45PM +0300, Oleg Nesterov wrote: > On 02/19, Jarek Poplawski wrote: > > > > On Mon, Feb 19, 2007 at 03:03:53PM +0300, Oleg Nesterov wrote: > > > On 02/19, Jarek Poplawski wrote: > > ... > > > kfree() doesn't check WORK_STRUCT_PENDING, it makes no > > > difference if it is set or not when work->func() runs. > > > > It looks like it's to be checked before kfree. > > Here, > br_add_if: ... I meant "it's to be checked", if it's used by a program. The name: work_release seems to tell the work function could signal, when it doesn't need a structure no more. But br_if.c doesn't seem to use this infomation now, so there should be no difference after changing to "without _NAR". This change will limit some potential changes in the future, but if it's not used by anybody than the simpler api is a gain. Jarek P. - 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/