mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* question about pt locking
@ 2009-03-20  8:16 Shentino
  2009-03-20  8:52 ` Peter Zijlstra
  0 siblings, 1 reply; 3+ messages in thread
From: Shentino @ 2009-03-20  8:16 UTC (permalink / raw)
  To: linux-kernel

Just curious, but does a process effectively have a read-lock on its 
page tables when it's in userland?

-- a curious newbie


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

* Re: question about pt locking
  2009-03-20  8:16 question about pt locking Shentino
@ 2009-03-20  8:52 ` Peter Zijlstra
  2009-03-20  9:24   ` Shentino
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Zijlstra @ 2009-03-20  8:52 UTC (permalink / raw)
  To: Shentino; +Cc: linux-kernel

On Fri, 2009-03-20 at 01:16 -0700, Shentino wrote:
> Just curious, but does a process effectively have a read-lock on its 
> page tables when it's in userland?

No, page reclaim can fiddle with a running process' page tables
concurrently.

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

* Re: question about pt locking
  2009-03-20  8:52 ` Peter Zijlstra
@ 2009-03-20  9:24   ` Shentino
  0 siblings, 0 replies; 3+ messages in thread
From: Shentino @ 2009-03-20  9:24 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: Shentino, linux-kernel

On Fri, Mar 20, 2009 at 09:52:10AM +0100, Peter Zijlstra wrote:
> On Fri, 2009-03-20 at 01:16 -0700, Shentino wrote:
> > Just curious, but does a process effectively have a read-lock on its 
> > page tables when it's in userland?
> 
> No, page reclaim can fiddle with a running process' page tables
> concurrently.

Yeah just now remembered why the kernel has tlb inval/flush routines

...duh...

Thanks for the answers though, I learned something today.

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

end of thread, other threads:[~2009-03-20  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-20  8:16 question about pt locking Shentino
2009-03-20  8:52 ` Peter Zijlstra
2009-03-20  9:24   ` Shentino

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®