Re: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd

2009-11-16 Thread Arnd Bergmann
On Monday 16 November 2009, Christoph Hellwig wrote: > As mentioned before making generic_file_llseek the new default is > probably a bad idea. The majority of our file_operations instances > don't actually support seeking, so no_llseek should become the new > default if you spend some effort on c

Re: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd

2009-11-16 Thread Christoph Hellwig
On Mon, Nov 02, 2009 at 04:51:52PM +0100, Arnd Bergmann wrote: > I looked at what places in the code manipulate file->f_pos directly > and found that almost all the uses in driver code are broken because > they don't take any locks. Most of them are in driver specific > lseek operations. Others are

Re: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd

2009-11-02 Thread Arnd Bergmann
On Thursday 22 October 2009, Frederic Weisbecker wrote: > > I'm thinking that the simplier approach, would be to make the > > default_llseek the unlocked one. Then you only have to audit the drivers > > that have the BKL - ie the ones we are auditing anyway, and explicitly set > > them to the bk

Re: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd

2009-10-21 Thread Frederic Weisbecker
On Wed, Oct 21, 2009 at 11:53:21PM +0200, John Kacur wrote: > > No problem with that. Setting no_llseek or generic_file_llseek_unlocked, > > depending on the context is the right thing to do. > > > > What I'm wondering about concerns the future code that will have > > no llsek() implemented in the

Re: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd

2009-10-21 Thread John Kacur
On Wed, 21 Oct 2009, Frederic Weisbecker wrote: > On Wed, Oct 21, 2009 at 11:33:17PM +0200, John Kacur wrote: > > > Should we better pushdown default_llseek to every to every > > > file operations that don't implement llseek? > > > I don't know how many of them don't implement llseek() though. >

Re: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd

2009-10-21 Thread Frederic Weisbecker
On Wed, Oct 21, 2009 at 11:33:17PM +0200, John Kacur wrote: > > Should we better pushdown default_llseek to every to every > > file operations that don't implement llseek? > > I don't know how many of them don't implement llseek() though. > > > > That said we can't continue anymore with this defau

Re: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd

2009-10-21 Thread John Kacur
] macintosh: Explicitly set llseek to no_llseek in ans-lcd > > > > Now that we've removed the BKL here, let's explicitly set lleek to no_llseek > > > > Signed-off-by: John Kacur > > --- > > drivers/macintosh/ans-lcd.c |1 + > > 1 files c

Re: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd

2009-10-21 Thread Frederic Weisbecker
On Wed, Oct 21, 2009 at 11:07:18PM +0200, John Kacur wrote: > From 0c2b412cdccf73bdeb19bb866bfe556942eaeca2 Mon Sep 17 00:00:00 2001 > From: John Kacur > Date: Wed, 21 Oct 2009 23:01:12 +0200 > Subject: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd > > Now

[PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd

2009-10-21 Thread John Kacur
>From 0c2b412cdccf73bdeb19bb866bfe556942eaeca2 Mon Sep 17 00:00:00 2001 From: John Kacur Date: Wed, 21 Oct 2009 23:01:12 +0200 Subject: [PATCH] macintosh: Explicitly set llseek to no_llseek in ans-lcd Now that we've removed the BKL here, let's explicitly set lleek to no_llseek