linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* nfs mmap vs i_mutex inversion
@ 2008-10-02 14:53 Peter Zijlstra
  0 siblings, 0 replies; only message in thread
From: Peter Zijlstra @ 2008-10-02 14:53 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-mm, Nick Piggin

Hi Trond,

About that lock order inversion I remembered, I still have the patches:

http://programming.kicks-ass.net/kernel-patches/mmap-vs-nfs/

Although they would want updating a little.

But looking at a recent (.27-rc5-mm1) the offending code path:

down_write(&mm->mmap_sem)
...
->nfs_file_mmap()
    nfs_revalidate_mapping()
      nfs_invalidate_mapping()
        mutex_lock(&inode->i_mutex);


vs the regular order of

  inode->i_mutex
    mm->mmap_sem

as described in mm/rmap.c

Seems to still exist.

If you agree its a valid concern, I'll brush up the patches and repost.

--
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:[~2008-10-02 14:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-02 14:53 nfs mmap vs i_mutex inversion Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox