mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: "Raz Ben-Jehuda(caro)" <raziebe@gmail.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: kmap_atomic in 2.6.20.x
Date: Wed, 6 Jun 2007 21:17:29 +0200	[thread overview]
Message-ID: <20070606191729.GE4735@kernel.dk> (raw)
In-Reply-To: <5d96567b0706061003r462c324i733ad3698ac3d90c@mail.gmail.com>

On Wed, Jun 06 2007, Raz Ben-Jehuda(caro) wrote:
> Hello
> 
> I am running into some problems with kmap_atomic in my driver.
> My driver copies some pages coming from
> user space to "kernel space kmalloc'ed memory".
> I had this code running from 2.6.5 to 2.6.17 without any problems.
> I have upgraded to 2.6.20.xx and this code fails to kmap_atomic.
> I am running a uni processor 2 GRAM machine, 32bit.
> 
> Basically this is code does:
> 
> get_user_pages(page,...)
> 
> kmap_atomic(page,KM_USER0);
> .. copy and stuff
> kunmap_atomic(page,KM_USER0)

dst = kmap_atomic(page, KM_USER0);
...
kunmap_atomic(dst, KM_USER0);

Note the subtle difference.

-- 
Jens Axboe


  reply	other threads:[~2007-06-06 19:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-06 17:03 Raz Ben-Jehuda(caro)
2007-06-06 19:17 ` Jens Axboe [this message]
2007-06-07  8:56   ` Raz Ben-Jehuda(caro)
2007-06-06 20:03 ` Trond Myklebust

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070606191729.GE4735@kernel.dk \
    --to=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=raziebe@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®