Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762286AbXH0UsJ (ORCPT ); Mon, 27 Aug 2007 16:48:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757389AbXH0Ur4 (ORCPT ); Mon, 27 Aug 2007 16:47:56 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:59600 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754455AbXH0Urz (ORCPT ); Mon, 27 Aug 2007 16:47:55 -0400 Date: Mon, 27 Aug 2007 21:47:52 +0100 From: Al Viro To: Robin Holt Cc: Dean Nelson , akpm@linux-foundation.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, tony.luck@intel.com, jes@sgi.com Subject: Re: [PATCH 1/4] export __put_task_struct for XPMEM Message-ID: <20070827204752.GK21089@ftp.linux.org.uk> References: <20070827155622.GA25589@sgi.com> <20070827155933.GB25589@sgi.com> <20070827161327.GG21089@ftp.linux.org.uk> <20070827181056.GA30176@sgi.com> <20070827181544.GH21089@ftp.linux.org.uk> <20070827191906.GB30176@sgi.com> <20070827193510.GJ21089@ftp.linux.org.uk> <20070827202420.GE22922@lnx-holt.americas.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070827202420.GE22922@lnx-holt.americas.sgi.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1034 Lines: 25 On Mon, Aug 27, 2007 at 03:24:20PM -0500, Robin Holt wrote: > On Mon, Aug 27, 2007 at 08:35:10PM +0100, Al Viro wrote: > > On Mon, Aug 27, 2007 at 02:19:06PM -0500, Dean Nelson wrote: > > > > > No operations can be done once it's closed, only while it's opened. > > > > What the hell do you mean, can't be done? > > > > fd = open(...); > > fp = popen("/bin/date", "r"); > > /* read from fp */ > > fclose(fp); > > But this will operate on the dup'd fd. We detect that in the flush > (ignore) and ioctl (return errors) operations. All other operations > are not handled by xpmem. How the hell do you detect dup'd fd? It's identical to the original in every respect and it doesn't have to be held by a different task. Seriously, what you are proposing makes no sense whatsoever... - 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/