[openib-general] [PATCH 5/6] [RFC] iser handling of memory for RDMA
Christoph Hellwig
hch at lst.de
Sat Mar 4 07:49:31 PST 2006
On Tue, Feb 28, 2006 at 03:05:16PM +0200, Or Gerlitz wrote:
> Christoph Hellwig wrote:
> > > use kmap_atomic instead of page_address in the code copying from/to SG
> > > which is unaligned for rdma
> >
> >this isn't entirely correct I think. iser_finalize_rdma_unaligned_sg
> >is called from a tasklist, which is softirq context, so you can't use
> >KM_USER0 there. KM_SOFTIRQ0 should probably work.
>
> This is exactly the case, iser_finalize_rdma_unaligned_sg runs in
> tasklet context and its code is using KM_SOFTIRQ0 and
> iser_start_rdma_unaligned_sg runs in kernel thread or user process
> context and its code uses KM_USER0
I'm sorry, I misread the code for some reason.
More information about the general
mailing list