On Mon, 2 Jun 2008, Andrew Morton wrote:Yes, that comment is all about how a common function cannot be expected to guess whether it's being called in atomic context or not; but we know that we don't have any spinlocks held here, therefore it's okay. Or do you consider fs/exec.c a driver, and shouldn't set bad example? It is exactly the test that do_page_fault() makes at the other end, when deciding whether it can handle the fault. Originally I had a bool atomic there instead. I switched over to testing in_atomic() itself because I had it mind to suggest another patch: it has long seemed wrong to me that we should have to disable preemption and fault handling there, when often (on many architectures, or on many pages) it's unnecessary. So I'd like to change (the various implementations of) kmap_atomic() to use pagefault_disable() only when the page actually is in highmem. Hugh --
| H. Peter Anvin | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
| Greg Kroah-Hartman | [PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt |
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Alex Chiang | [PATCH 1/4] Remove path attribute from sgi_hotplug |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [GIT]: Networking |
| Eric Dumazet | Re: [PATCH 3/3] Convert the UDP hash lock to RCU |
