Commit ccc142ac authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 38ddb8c7
......@@ -811,7 +811,12 @@ error _FileH::close() {
_FileH& fileh = *this;
Conn wconn = fileh.wconn;
// XXX virt_lock + explain (refer to __pin1)
// lock virtmem first. TODO more granular virtmem locking (see __pin1 for
// details and why virt_lock currently goes first)
virt_lock();
defer([&]() {
virt_unlock();
});
wconn->_atMu.RLock();
wconn->_filehMu.Lock();
......
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