Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754036AbbDPREp (ORCPT ); Thu, 16 Apr 2015 13:04:45 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:36230 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbbDPREj (ORCPT ); Thu, 16 Apr 2015 13:04:39 -0400 MIME-Version: 1.0 In-Reply-To: References: <20150413190350.GA9485@kroah.com> <20150413204547.GB1760@kroah.com> <20150414175019.GA2874@kroah.com> <20150415085641.GH16381@kroah.com> <20150415120618.4d8d90ff@lxorguk.ukuu.org.uk> <552E8B11.4010803@redhat.com> From: Andy Lutomirski Date: Thu, 16 Apr 2015 10:04:17 -0700 Message-ID: Subject: Re: [GIT PULL] kdbus for 4.1-rc1 To: David Herrmann Cc: Tom Gundersen , Havoc Pennington , Rik van Riel , One Thousand Gnomes , Greg Kroah-Hartman , Jiri Kosina , Linus Torvalds , Andrew Morton , Arnd Bergmann , "Eric W. Biederman" , "linux-kernel@vger.kernel.org" , Daniel Mack , Djalal Harouni Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1207 Lines: 29 On Thu, Apr 16, 2015 at 8:01 AM, David Herrmann wrote: > Hi > > On Thu, Apr 16, 2015 at 4:34 PM, Andy Lutomirski wrote: >> Whose memcg does the pool use? > > The pool-owner's (i.e., the receiver's). > >> If it's the receiver's, and if the >> receiver can configure a memcg, then it seems that even a single >> receiver could probably cause the sender to block for an unlimited >> amount of time. > > How? Which of those calls can block? I don't see how that can happen. I admit I don't fully understand memcg, but vfs_iter_write is presumably going to need to get write access to the target pool page, and that, in turn, will need that page to exist in memory and to be writable, which may need to page it in and/or allocate a page. If that uses the receiver's memcg (as it should), then the receiver can make it block. Even if it doesn't use the receiver's memcg, it can trigger direct reclaim, I think. --Andy -- 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/