Whamcloud - gitweb
b=2313
authorphil <phil>
Fri, 5 Dec 2003 03:18:46 +0000 (03:18 +0000)
committerphil <phil>
Fri, 5 Dec 2003 03:18:46 +0000 (03:18 +0000)
commit75c83c4ac0645ed84374c074bf50d5eef6c7c67a
treeb81d559430589b813ff77818d6e2d982ce38af36
parent55bc4d0b900af9e9048c24c08ca558fc3d007b2f
b=2313
r=shaver
This bug happens when a file is opened twice for write, then both close it
at the same time.  If they both drop the writecount, then race to
compare it against 0, one will free the fsdata and the other will assert.

This looks like a big patch, but it's mostly plumbing.  I had to do some
different argument passing, in order to keep everything protected under the
same lock.

I removed the writecount spinlock, and use the epoch semaphore for all three
things: management of the epoch, protection of the writecount, and atomicity of
writecount modifications which result in allocation or freeing of the fsdata.
lustre/ChangeLog