mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* kmap_atomic slot collision
@ 2005-12-15 17:33 Michael S. Tsirkin
  2005-12-17 20:37 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Michael S. Tsirkin @ 2005-12-15 17:33 UTC (permalink / raw)
  To: linux-kernel

Hi!
I'm trying to use kmap_atomic from both interrupt and task context.
My idea was to do local_irq_save and then use KM_IRQ0/KM_IRQ1:
since I'm disabling interrupts I assumed that this should be safe.
The relevant code is here:
https://openib.org/svn/gen2/trunk/src/linux-kernel/infiniband/ulp/sdp/sdp_iocb.c

However, under stress I see errors from arch/i386/mm/highmem.c:42
        if (!pte_none(*(kmap_pte-idx)))
                BUG();

Apparently, my routine, running from a task context, races with
some other kernel code, and so I'm trying to use a slot that was not
yet unmapped.

Anyone has an idea on what I could be doing wrong?

Thanks,
-- 
MST

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-12-17 21:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-15 17:33 kmap_atomic slot collision Michael S. Tsirkin
2005-12-17 20:37 ` Andrew Morton
2005-12-17 21:05   ` Michael S. Tsirkin

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®