From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752720AbdBUUys (ORCPT ); Tue, 21 Feb 2017 15:54:48 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:36124 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751161AbdBUUyi (ORCPT ); Tue, 21 Feb 2017 15:54:38 -0500 Date: Tue, 21 Feb 2017 23:54:34 +0300 From: Cyrill Gorcunov To: Jason Baron Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, viro@zeniv.linux.org.uk, akpm@linuxfoundation.org, avagin@virtuozzo.com, xemul@virtuozzo.com, mtk.manpages@gmail.com, kir@openvz.org, luto@amacapital.net Subject: Re: [RFC 0/3] fs,epoll: Add ability to call kcmp to find target files Message-ID: <20170221205434.GD27653@uranus> References: <20170221165944.180372636@openvz.org> <39a65773-a58e-032b-1448-5e03bf78d763@akamai.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39a65773-a58e-032b-1448-5e03bf78d763@akamai.com> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 21, 2017 at 03:32:21PM -0500, Jason Baron wrote: > Hi, > > Since an epoll fd can be added to another epoll fd, I'm wondering if you > have enough data here to figure that out. The inode is the > 'anon_inode_inode', so I'm wondering if that is sufficient to distinguish it > from other anonymous inodes, or if an extra bit is required to indicate if > the target file is in fact and epoll fd. I think it should be ebough (together with sdev and pos). But will look more closely tomorrow once I sit implementing criu support :) (that's why it is early rfc, to gather comments)