Thread (31 messages) 31 messages, 4 authors, 2022-01-28

Re: [PATCH 4/8] loop: only take lo_mutex for the last reference in lo_release

From: Christoph Hellwig <hch@lst.de>
Date: 2022-01-27 10:28:19

On Thu, Jan 27, 2022 at 11:19:57AM +0100, Jan Kara wrote:
Just after writing this I have realized that the above sequence is not
actually possible due to disk->open_mutex protecting us and serializing
lo_release() with lo_open() but it needs at least a comment to explain that
we rely on disk->open_mutex to avoid races with lo_open().
The commit message already notes this.  Not sure we really need a comment
in the code itself, but if you want I can add it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help