From: Andi Kleen Subject: Re: [patch 4/4] mISDN: misc timerdev fixes II Date: Tue, 23 Sep 2008 18:46:52 +0200 Message-ID: <20080923164651.GK25711@one.firstfloor.org> References: <200809222151.m8MLp3tb031906@imap1.linux-foundation.org> <20080923104026.GA12535@infradead.org> <20080923043005.358e19e7.akpm@linux-foundation.org> <20080923141740.GJ25711@one.firstfloor.org> <20080923155844.GA30526@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andi Kleen , Andrew Morton , kkeil@suse.de, netdev@vger.kernel.org, ak@linux.intel.com To: Christoph Hellwig Return-path: Received: from one.firstfloor.org ([213.235.205.2]:49492 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751922AbYIWQl7 (ORCPT ); Tue, 23 Sep 2008 12:41:59 -0400 Content-Disposition: inline In-Reply-To: <20080923155844.GA30526@infradead.org> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Sep 23, 2008 at 11:58:44AM -0400, Christoph Hellwig wrote: > On Tue, Sep 23, 2008 at 04:17:40PM +0200, Andi Kleen wrote: > > > > > static struct file_operations mISDN_fops = { > > > > > - .llseek = mISDN_llseek, > > > > > > > > This is wrong. no llseek means we use default_llseek, which is > > > > different from returning -ESPIPE. > > > > > > so.. this? > > > > Hmm actually on double checking it's really needed, sorry. > > Yes, unfortunately the only way it's cleared currently is through using > nonseekable_open, but I've started preparing a war plan to sort this whole > mess out. Yes it would be much more logical if FMODE_SEEK was cleared on character devices by default. That is what I assumed with the original patch. -Andi -- ak@linux.intel.com