* vmlist_lock locking
@ 2006-12-08 7:07 kernel list
2006-12-08 7:40 ` Eric Dumazet
0 siblings, 1 reply; 3+ messages in thread
From: kernel list @ 2006-12-08 7:07 UTC (permalink / raw)
To: linux-kernel; +Cc: list.kernel
My understanding is that get_vm_area_node etc. can't be called in
interrupt context because vmlist_lock is obtained with read_lock /
write_lock. I am wondering if it makes sense to use read_lock_bh /
write_lock_bh so that get_vm_area_node can be called in soft interrupt
context. All the code executed when holding vmlist_lock is walking
through the list, so it shouldn't change the behavior. If it does make
sense, BUG_ON(in_interrupt()) can be changed to BUG_ON(in_irq()).
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vmlist_lock locking
2006-12-08 7:07 vmlist_lock locking kernel list
@ 2006-12-08 7:40 ` Eric Dumazet
2006-12-12 9:58 ` Jarek Poplawski
0 siblings, 1 reply; 3+ messages in thread
From: Eric Dumazet @ 2006-12-08 7:40 UTC (permalink / raw)
To: kernel list; +Cc: linux-kernel
kernel list a écrit :
> My understanding is that get_vm_area_node etc. can't be called in
> interrupt context because vmlist_lock is obtained with read_lock /
> write_lock. I am wondering if it makes sense to use read_lock_bh /
> write_lock_bh so that get_vm_area_node can be called in soft interrupt
> context. All the code executed when holding vmlist_lock is walking
> through the list, so it shouldn't change the behavior. If it does make
> sense, BUG_ON(in_interrupt()) can be changed to BUG_ON(in_irq()).
Maybe it is just me, but I like to know people names.
Or maybe your name really is kernel list ?
I wonder why a soft irq would want to lookup vm areas.
(since vmalloc() from soft irq is *really* forbiden)
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-12-12 9:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-08 7:07 vmlist_lock locking kernel list
2006-12-08 7:40 ` Eric Dumazet
2006-12-12 9:58 ` Jarek Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox