Re: [Patch] Do not copy from remote while in_atomic()

tab-mTI/[email protected] (Vincent Hanquez)
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
On Thu, Mar 23, 2006 at 11:37:44AM +0100, Ansgar Esztermann wrote:
> Here is a patch for CONFIG_HIGHMEM enabled kernels.
>
> Some kernel functions use kmap_atomic() rather than kmap() to map a
> page before copying data from user space. While this is faster, atomic
> maps pose a problem with OpenMosix: deputy_copy_from_user() has to
> get the data over the network; the network code in turn might
> reschedule, which will lead to a "scheduling while atomic" error
> message. Worse, the copied data may be corrupted.
> One of the functions affected is the write() system call.
>
> The following patch makes deputy_copy_*_user() fail gracefully in this
> case. The calling function then has the opportunity to retry the
> operation using non-atomic maps instead.

Applied, Thanks.

-- 
Vincent Hanquez


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.