On Wednesday 18 June 2008 08:21, Andi Kleen wrote:It looks like mount does need an exact copy, so they've rolled their own (exact_copy_from_user). I guess if you need an exact copy, then it doesn't really matter how inexact an inexact one is, it's still unusable :) All else being equal, a smaller maximum error is preferable, but surely that is outweighed by the correctness issue of returning a valid number of bytes left to operate on. BTW. we already have lots (although steadily declining number) of corner case issues around this whole area, but if we want to get really strict, even an inexact report may be wrong for filemap. Suppose we copy 10 bytes into the pagecache, but report that 5 were copied. That means, we'll subsequently re-copy the delta. Between these two copies, a 2nd writer might come in and write something over those 5 bytes. Then a reader might see the following sequence of those 10 bytes "0000000000" "1111111111" "2222222222" "2222211111" --
| Parag Warudkar | BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 010/196] Chinese: add translation of Codingstyle |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Gerrit Renker | [PATCH 24/37] dccp: Processing Confirm options |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Alexey Dobriyan | Re: [GIT]: Networking |
| david | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
