Commit 50838492 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bf9fb0da
......@@ -648,8 +648,8 @@ retry:
goto retry;
}
// the file was opening|opened. wait for it to be opened and return the result.
// we can be sure there won't be last Close simultaneous to us as we did ._nopen++
// the file was opening|opened. wait for open to complete and return the result.
// we can be sure there won't be last close simultaneous to us as we did ._nopen++
f->_openReady.recv();
if (f->_openErr != nil) {
// don't care about f->_nopen-- since f is not returned anywhere
......@@ -687,6 +687,7 @@ retry:
wconn._filehTab.erase(foid);
wconn._mu.Unlock();
}
f->_state = _FileHOpened;
f->_openReady.close();
});
wconn._mu.Unlock();
......@@ -803,6 +804,9 @@ error _FileH::close() {
reterr1(fileh._headf->close());
fileh._state = _FileHClosed; // XXX locking
fileh._closedq.close();
fileh._closed = true;
return E(eret);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment