Re: [PATCHSET] FUSE: extend FUSE to support more operations

From: Tejun Heo
Date: Thu Nov 13 2008 - 08:24:19 EST


Hi,

Miklos Szeredi 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.

We don't need POLL_RELEASE but we still need POLL-reply (to request) to
send revents. We can put that into notification too. Hmmm... Yeah,
that could be simpler for FUSE servers. I'll venture that way.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/