Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750783AbWHKChM (ORCPT ); Thu, 10 Aug 2006 22:37:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750844AbWHKChM (ORCPT ); Thu, 10 Aug 2006 22:37:12 -0400 Received: from mx1.redhat.com ([66.187.233.31]:26269 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1750783AbWHKChK (ORCPT ); Thu, 10 Aug 2006 22:37:10 -0400 Message-ID: <44DBED4C.6040604@redhat.com> Date: Thu, 10 Aug 2006 22:37:00 -0400 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: Thomas Graf CC: Peter Zijlstra , linux-mm@kvack.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Daniel Phillips Subject: Re: [RFC][PATCH 2/9] deadlock prevention core References: <20060808193325.1396.58813.sendpatchset@lappy> <20060808193345.1396.16773.sendpatchset@lappy> <20060808211731.GR14627@postel.suug.ch> In-Reply-To: <20060808211731.GR14627@postel.suug.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 957 Lines: 23 Thomas Graf wrote: > skb->dev is not guaranteed to still point to the "allocating" device > once the skb is freed again so reserve/unreserve isn't symmetric. > You'd need skb->alloc_dev or something. There's another consequence of this property of the network stack. Every network interface must be able to fall back to these MEMALLOC allocations, because the memory critical socket could be on another network interface. Hence, we cannot know which network interfaces should (not) be marked MEMALLOC. -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan - 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/