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

On 6/6/07, Jens Axboe <jens.axboe@oracle.com> wrote:
> 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
>
>

hmm..... hammmm....haaaa
again...  many many thanks Jens.
You are correct.

-- 
Raz

  reply	other threads:[~2007-06-07  8:56 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
2007-06-07  8:56   ` Raz Ben-Jehuda(caro) [this message]
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=5d96567b0706070156g7f94c7a3te022b4ea4cb57c74@mail.gmail.com \
    --to=raziebe@gmail.com \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®