[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201009151837.30026.arnd@arndb.de>
Date: Wed, 15 Sep 2010 18:37:29 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Valdis.Kletnieks@...edu
Cc: linux-kernel@...r.kernel.org, Al Viro <viro@...iv.linux.org.uk>,
Christoph Hellwig <hch@...radead.org>,
David Airlie <airlied@...ux.ie>,
dri-devel@...ts.freedesktop.org, Jeremy Kerr <jk@...abs.org>,
"John W. Linville" <linville@...driver.com>,
Julia Lawall <julia@...u.dk>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-fsdevel@...r.kernel.org, linux-omap@...r.kernel.org,
linuxppc-dev@...abs.org, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, Samuel Ortiz <samuel@...tiz.org>,
Stephen Rothwell <sfr@...b.auug.org.au>,
Tony Lindgren <tony@...mide.com>
Subject: Re: [PATCH 00/15] change default_llseek action
On Wednesday 15 September 2010, Valdis.Kletnieks@...edu wrote:
> Show Details
> On Tue, 14 Sep 2010 22:22:28 +0200, Arnd Bergmann said:
>
> > This changes all instances of struct file_operations in
> > the kernel to have a .llseek operation and then changes
> > the default to no_llseek, which returns -ESPIPE, which
> > is what we had decided some time ago in a discussion
> > with Christoph Hellwig.
>
> I don't suppose there's any clean way to throw a build error or a
> printk_on_once() or something if we encounter an unconverted 'struct
> file_operations', is there? I have this creeping fear that this patch will go
> upstream during the merge window - as will 12 new staging/ drivers from authors
> who didn't get the memo yet.
>
> Other than the "missed converting a new usage" issue, it looks OK to me.
One advantage of the scripted approach is that I can run the script
repeatedly, and send a patch after -rc1 fixing up all the new file
operations.
Moreover, any new drivers are by definition not regressions and staging
drivers are expected to have issues. IIRC the most common llseek operation
is 'noop_llseek', which usually means it should have been 'no_llseek' to
start with, but since this has been in a released kernel, some random
user application might expect a seek on that file to succeed without
error.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists