From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756250AbXD2GSy (ORCPT ); Sun, 29 Apr 2007 02:18:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756244AbXD2GSx (ORCPT ); Sun, 29 Apr 2007 02:18:53 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:55134 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1756242AbXD2GSw (ORCPT ); Sun, 29 Apr 2007 02:18:52 -0400 Date: Sat, 28 Apr 2007 23:18:49 -0700 (PDT) Message-Id: <20070428.231849.59657032.davem@davemloft.net> To: herbert@gondor.apana.org.au Cc: xemul@sw.ru, netdev@vger.kernel.org, akpm@osdl.org, linux-kernel@vger.kernel.org, devel@openvz.org, kaber@trash.net, dev@openvz.org Subject: Re: [NETLINK] Don't attach callback to a going-away netlink socket From: David Miller In-Reply-To: References: <20070418.170636.77057313.davem@davemloft.net> X-Mailer: Mew version 5.1.52 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: Herbert Xu Date: Thu, 19 Apr 2007 12:13:51 +1000 > [NETLINK]: Kill CB only when socket is unused > > Since we can still receive packets until all references to the > socket are gone, we don't need to kill the CB until that happens. > This also aligns ourselves with the receive queue purging which > happens at that point. > > Original patch by Pavel Emelianov who noticed this race condition. > > Signed-off-by: Herbert Xu Herbert, could you refresh this refinement to the current tree? Thanks a lot!