* [RESEND][BUG][PATCH]-rc: USB: yurex: add .llseek fop to file_operations
@ 2010-11-25 16:11 Tomoki Sekiyama
2010-11-25 17:16 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Tomoki Sekiyama @ 2010-11-25 16:11 UTC (permalink / raw)
To: linux-kernel, linux-usb, gregkh; +Cc: arnd
Hi Greg-KH,
Sorry for resending this; To: was not enough.
https://bugzilla.kernel.org/show_bug.cgi?id=23512
Default llseek operation behavior was changed by the patch named
"vfs: make no_llseek the default" after the yurex driver was merged,
so the llseek to yurex is now ignored.
This patch add llseek fop with default_llseek to yurex driver
to catch up to the change.
Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c
index 719c618..ac5bfd6 100644
--- a/drivers/usb/misc/yurex.c
+++ b/drivers/usb/misc/yurex.c
@@ -536,6 +536,7 @@ static const struct file_operations yurex_fops = {
.open = yurex_open,
.release = yurex_release,
.fasync = yurex_fasync,
+ .llseek = default_llseek,
};
--
1.7.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [RESEND][BUG][PATCH]-rc: USB: yurex: add .llseek fop to file_operations
2010-11-25 16:11 [RESEND][BUG][PATCH]-rc: USB: yurex: add .llseek fop to file_operations Tomoki Sekiyama
@ 2010-11-25 17:16 ` Greg KH
2010-11-26 15:22 ` Arnd Bergmann
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2010-11-25 17:16 UTC (permalink / raw)
To: Tomoki Sekiyama; +Cc: linux-kernel, linux-usb, arnd
On Fri, Nov 26, 2010 at 01:11:05AM +0900, Tomoki Sekiyama wrote:
> Hi Greg-KH,
> Sorry for resending this; To: was not enough.
>
> https://bugzilla.kernel.org/show_bug.cgi?id=23512
>
> Default llseek operation behavior was changed by the patch named
> "vfs: make no_llseek the default" after the yurex driver was merged,
> so the llseek to yurex is now ignored.
>
> This patch add llseek fop with default_llseek to yurex driver
> to catch up to the change.
>
> Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>
It's in my queue, sorry, been without power and water at home for a few
days, will catch up on this stuff next week...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RESEND][BUG][PATCH]-rc: USB: yurex: add .llseek fop to file_operations
2010-11-25 17:16 ` Greg KH
@ 2010-11-26 15:22 ` Arnd Bergmann
2010-11-27 3:46 ` Tomoki Sekiyama
0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2010-11-26 15:22 UTC (permalink / raw)
To: Greg KH; +Cc: Tomoki Sekiyama, linux-kernel, linux-usb
On Thursday 25 November 2010 18:16:13 Greg KH wrote:
> On Fri, Nov 26, 2010 at 01:11:05AM +0900, Tomoki Sekiyama wrote:
> > Hi Greg-KH,
> > Sorry for resending this; To: was not enough.
> >
> > https://bugzilla.kernel.org/show_bug.cgi?id=23512
> >
> > Default llseek operation behavior was changed by the patch named
> > "vfs: make no_llseek the default" after the yurex driver was merged,
> > so the llseek to yurex is now ignored.
> >
> > This patch add llseek fop with default_llseek to yurex driver
> > to catch up to the change.
> >
> > Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>
>
> It's in my queue, sorry, been without power and water at home for a few
> days, will catch up on this stuff next week...
I was out most of the week, so I didn't get to look at it either.
Is there an actual bug here caused by having no .llseek function?
As far as I can tell, you don't really want to seek this file
anyway, so the default behaviour of disallowing llseek would actually
make more sense.
Arnd
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RESEND][BUG][PATCH]-rc: USB: yurex: add .llseek fop to file_operations
2010-11-26 15:22 ` Arnd Bergmann
@ 2010-11-27 3:46 ` Tomoki Sekiyama
2010-11-29 15:04 ` Arnd Bergmann
0 siblings, 1 reply; 5+ messages in thread
From: Tomoki Sekiyama @ 2010-11-27 3:46 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Greg KH, linux-kernel, linux-usb
2010/11/27 Arnd Bergmann <arnd@arndb.de>:
> On Thursday 25 November 2010 18:16:13 Greg KH wrote:
>> On Fri, Nov 26, 2010 at 01:11:05AM +0900, Tomoki Sekiyama wrote:
>> > Hi Greg-KH,
>> > Sorry for resending this; To: was not enough.
>> >
>> > https://bugzilla.kernel.org/show_bug.cgi?id=23512
>> >
>> > Default llseek operation behavior was changed by the patch named
>> > "vfs: make no_llseek the default" after the yurex driver was merged,
>> > so the llseek to yurex is now ignored.
>> >
>> > This patch add llseek fop with default_llseek to yurex driver
>> > to catch up to the change.
>> >
>> > Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>
>>
>> It's in my queue, sorry, been without power and water at home for a few
>> days, will catch up on this stuff next week...
>
> I was out most of the week, so I didn't get to look at it either.
> Is there an actual bug here caused by having no .llseek function?
>
> As far as I can tell, you don't really want to seek this file
> anyway, so the default behaviour of disallowing llseek would actually
> make more sense.
I need seek because the device notifies the update of the sensor's value
by fasync, then the user can rewind(seek to 0) and re-read the file.
Thanks,
--
Tomoki Sekiyama
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RESEND][BUG][PATCH]-rc: USB: yurex: add .llseek fop to file_operations
2010-11-27 3:46 ` Tomoki Sekiyama
@ 2010-11-29 15:04 ` Arnd Bergmann
0 siblings, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2010-11-29 15:04 UTC (permalink / raw)
To: Tomoki Sekiyama; +Cc: Greg KH, linux-kernel, linux-usb
On Saturday 27 November 2010, Tomoki Sekiyama wrote:
> 2010/11/27 Arnd Bergmann <arnd@arndb.de>:
>
> > As far as I can tell, you don't really want to seek this file
> > anyway, so the default behaviour of disallowing llseek would actually
> > make more sense.
>
> I need seek because the device notifies the update of the sensor's value
> by fasync, then the user can rewind(seek to 0) and re-read the file.
Yes, that makes sense.
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-11-29 15:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-25 16:11 [RESEND][BUG][PATCH]-rc: USB: yurex: add .llseek fop to file_operations Tomoki Sekiyama
2010-11-25 17:16 ` Greg KH
2010-11-26 15:22 ` Arnd Bergmann
2010-11-27 3:46 ` Tomoki Sekiyama
2010-11-29 15:04 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox