All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [LSF/MM TOPIC] Page fault locking
@ 2014-03-17 20:17 Jan Kara
  0 siblings, 0 replies; only message in thread
From: Jan Kara @ 2014-03-17 20:17 UTC (permalink / raw
  To: lsf-pc; +Cc: linux-mm, linux-fsdevel

  Hello,

  so this is a continuation of the topic we spoke about at last LSF/MM
(http://lwn.net/Articles/548098/) about problems filesystems have with
mmap_sem held over page fault. Over the year I have slowly worked through
get_user_pages() users and was converting them to hide mmap_sem locking
inside helpers. Some of the patches were merged, some patches still just
sit in my queue (but most of them is luckily trivial), I've sent out
probably the most complex part - conversion of video4linux2 core - today.

What I'm interested in is:
1) Some feedback regarding the proposed get_vaddr_pfn() helper function.
2) Discuss changes of get_user_pages() function - my idea is that all users
   that need non-trivial locking should use __get_user_pages() (so far
   there are about 8 such callers after my series). get_user_pages() call
   will now grab mmap_sem on its own.
3) Overview remaining call sites of get_user_pages() with non-trivial
   locking - at some places I think we could change the locking so that
   they could use get_user_pages() variant which takes care of grabbing
   mmap_sem. Also I have one place (yes, the only place in the whole
   kernel) in kernel/events/uprobes.c where it's not clear to me how to
   handle situation if fault handler would drop mmap_sem. So I'd like to
   bounce that off the people in the room in case someone comes up with
   anything clever.

								Honza

-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-17 20:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17 20:17 [LSF/MM TOPIC] Page fault locking Jan Kara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.