Hello, Miklos. Miklos Szeredi wrote:Eh... I replied too early for this. I'm now trying to convert it to its own handle but there is a rather serious problem. It's usually much easier to have the entity to be waken up registered before calling ->poll so that ->poll can use the same notification path from ->poll ans for later. However, if we allocate poll handle from ->poll and tell it to kernel via reply, it creates two problem. 1. the entity which is to be waken up can't be registered prior to calling ->poll as there's nothing to identify it, 2. the interval from reply write and in-kernel polled entity registration must be made atomic so that no notification can come through inbetween. #1 means that ->poll can't call the same notification path from ->poll itself and #2 means that there needs to be special provision from dev.c::fuse_dev_write() to file.c::fuse_file_poll() so that atomicity can be guaranteed. Both of which can be done but I'm not really sure whether using a separate handle would be a good idea even with the involved cost. Why do you think using separate poll handle would be better? And do you still think the overhead is justifiable? Thanks. -- tejun --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
| Eric Sandeen | Re: [RFC] Heads up on sys_fallocate() |
| YOSHIFUJI Hideaki / | request_module: runaway loop modprobe net-pf-1 (is Re: Linux 2.6.21-rc1) |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Ben Greear | Re: MACVLANs really best solution? How about a bridge with multiple bridge virtual... |
| Rafael J. Wysocki | 2.6.29-rc8: Reported regressions from 2.6.28 |
