lkml.org 
[lkml]   [2007]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: kmap_atomic in 2.6.20.x
    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
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-06-07 10:59    [W:2.552 / U:2.636 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site