Re: [PATCH] hugetlbfs: lockdep annotate root inode properly

From: Aneesh Kumar K.V
Date: Fri Mar 09 2012 - 00:01:21 EST


On Thu, 8 Mar 2012 14:19:38 -0800, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Thu, 8 Mar 2012 21:49:52 +0000
> Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> > > So we need to pull the i_mutex out of hugetlbfs_file_mmap().
> >
> > IIRC, you have a patch in your tree doing just that...
>
> Nope.
>
> But it seems that you've recently seen such a patch - can you recall
> where? Or was it the ecryptfs thing?
>

So what we ended up doing was

http://article.gmane.org/gmane.linux.kernel.mm/74732

The patch update hugetlbfs_read to not take i_mutex. That should make
sure deadlock won't happen.


-aneesh

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/