From: Christoph Hellwig Subject: Re: udev loops eating 100 % CPU [mmotm 2010-05-21-16-05] Date: Tue, 25 May 2010 08:28:27 -0400 Message-ID: <20100525122827.GA21596@infradead.org> References: <4BFBBEB7.4070107@gmail.com> <1274790132.2810.65.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jiri Slaby , Al Viro , Kay Sievers , Linux kernel mailing list , linux-fsdevel@vger.kernel.org, Andrew Morton To: Eric Paris Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:48196 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756500Ab0EYM2d (ORCPT ); Tue, 25 May 2010 08:28:33 -0400 Content-Disposition: inline In-Reply-To: <1274790132.2810.65.camel@localhost> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, May 25, 2010 at 08:22:12AM -0400, Eric Paris wrote: > On Tue, 2010-05-25 at 14:12 +0200, Jiri Slaby wrote: > > thanks for the report, it's a known problem: > > http://lkml.org/lkml/2010/5/22/150 > > Not sure yet how we are going to fix it. You can either just revert or > you could run this patch which I am using on my box. Not sure which Al > is going to want to do...... > > commit 6e066d6c0c70e2032b5fd2b5c6375e66a0f547f9 > Author: Eric Paris > Date: Tue May 25 07:55:46 2010 -0400 > > anon_inode/ioctl: push FIONREAD for anon_inode to the file handler > > FIONREAD for all S_IFREG files is handled by file_ioctl but the > anon_inode_inode is a magic special beast since the inode is shared between > lots of users. Thus ioctl calls on anon_inode_inode needs to go through > vfs_inode() instead of trying to shortcut some calls through file_ioctl(). > > Signed-off-by: Eric Paris This one is defintively far too disgusting.