Re: Isn't there race issue during fput() and the dentry_open()?

From: Al Viro
Date: Mon Apr 04 2005 - 05:53:16 EST


On Mon, Apr 04, 2005 at 08:42:30AM +0900, Tomita, Haruo wrote:
> Indeed, Is there a good method of debugging this issue?
> In the check on the source, a doubtful place was not found except file_kill().

The obvious way would be to add a variable and do something like
#define file_list_lock() \
do { \
spin_lock(&files_lock); \
holder_pid = pid; \
} while(0)
and add a way to check its value (anything - sysrq, whatever).

That assumes that you can reproduce that deadlock at will, obviously...
-
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/