Re: [RESEND] file operations: release can race with read/write?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Al Viro
Date: Wednesday, October 17, 2007 - 12:33 pm

On Wed, Oct 17, 2007 at 11:30:44AM -0700, Roland Dreier wrote:

Of _course_ you can trigger that - just open two files and have write
on one of them while another gets closed.

That is certainly possible, but it has nothing whatsoever with the
race you've described - you have two different objects and method
call on one of them might happen when destructor is called on another.

You have protection against ->release() for a struct file called
while you are in ->write() for _same_ struct file.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
file operations: release can race with read/write?, Roland Dreier, (Tue Oct 16, 11:53 am)
Re: [RESEND] file operations: release can race with read/w ..., Al Viro, (Wed Oct 17, 12:33 pm)