[PATCH] xfs: fix mmap_sem vs iolock lock order inversion inxfs_free_eofblocks

Christoph Hellwig hch at infradead.org
Tue Nov 3 08:51:52 CST 2009


On Mon, Nov 02, 2009 at 03:10:33PM -0600, Alex Elder wrote:
> I have a minor suggestion below, but it looks correct to me.
> I tried to get a better idea of what the conditions were
> where mmap_sem would be held by VM when ->release gets
> called, but didn't get to the bottom of that.  If it is
> easily characterized you could mention it in comments.

It's the VMA merging code.  But IMHO that's too much of an
implementation detail to put into the comment here.  Commit message
might be fine.




More information about the xfs mailing list