Re: [patch 1/2] spufs: make dentry reference count and locking symmetric
From: Arnd Bergmann
Date: Tue May 12 2009 - 10:04:18 EST
On Tuesday 05 May 2009, jblunck@xxxxxxx wrote:
> @@ -505,10 +505,7 @@ spufs_create_context(struct inode *inode
> out_aff_unlock:
> if (affinity)
> mutex_unlock(&gang->aff_mutex);
> -out_unlock:
> - mutex_unlock(&inode->i_mutex);
> out:
> - dput(dentry);
> return ret;
> }
>
There is a nasty deadlock problem with spu_forget(), which we
must call after unlocking i_mutex but before the final dput, IIRC.
The path down there is something like
spu_forget -> mmput -> exit_mmap -> remove_vma ->
fput -> dput -> dentry_iput -> iput -> iput_final ->
spufs_delete_inode -> destroy_spu_context.
Arnd <><
--
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/