lkml.org 
[lkml]   [2008]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCHSET] FUSE: extend FUSE to support more operations
From
Date
On Thu, 13 Nov 2008, Tejun Heo wrote:

> Hmm... yeah, allocating handle from kernel should work fine, but I
> wouldn't worry about race here. We can just use 64 bit and guarantee
> that any handle won't be reused ever.

Btw, the protocol could be simplified even more by getting rid of all
acknowledgements:

<- POLL-request(pollhandle) (alloc handle)
...
-> POLL-notification(pollhandle)
...
<- POLL_RELEASE(pollhandle)

So normally ->poll() wouldn't have to sleep at all. If the POLL
request fails for some reason, userspace just sends a notification
with the respective error.

Miklos


\
 
 \ /
  Last update: 2008-11-13 13:37    [W:0.058 / U:0.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site