Re: [RFC 0/3] fs,epoll: Add ability to call kcmp to find target files

From: Cyrill Gorcunov
Date: Tue Feb 21 2017 - 15:54:50 EST


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)