Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
862d57af
Commit
862d57af
authored
Feb 19, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9212b13c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+10
-10
No files found.
wcfs/client/wcfs.cpp
View file @
862d57af
...
...
@@ -306,7 +306,7 @@ error _Conn::__pin1(PinReq *req) {
// on error don't need to continue with other mappings - all fileh and
// all mappings become marked invalid on pinner failure.
// XXX all call wconn._down from here under wconn._
fileh
mu lock?
// XXX all call wconn._down from here under wconn._mu lock?
if
(
err
!=
nil
)
return
err
;
...
...
@@ -435,11 +435,11 @@ error _FileH::close() {
// remove fileh from wconn._filehTab
// fileh.close can be called several times and after first call another
// fileh could be opened for the same foid. Be careful not to erase it.
wconn
->
_
fileh
mu
.
lock
();
wconn
->
_mu
.
lock
();
// XXX decref open count
if
(
wconn
->
_filehTab
.
get
(
fileh
.
foid
).
_ptr
()
==
&
fileh
)
wconn
->
_filehTab
.
erase
(
fileh
.
foid
);
wconn
->
_
fileh
mu
.
unlock
();
wconn
->
_mu
.
unlock
();
return
E
(
fileh
.
_headf
->
close
());
}
...
...
@@ -582,9 +582,9 @@ error _Conn::resync(zodb::Tid at) {
error
err
;
wconn
.
_downMu
.
lock
();
// wconn._downMu.lock(); XXX
err
=
wconn
.
_downErr
;
wconn
.
_downMu
.
unlock
();
// wconn._downMu.unlock(); XXX
if
(
err
!=
nil
)
return
E
(
err
);
...
...
@@ -713,15 +713,15 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) {
// RW dirty page was e.g. discarded.
error
_Mapping
::
remmap_blk
(
int64_t
blk
)
{
_Mapping
&
mmap
=
*
this
;
FileH
f
=
mmap
->
fileh
;
FileH
f
=
mmap
.
fileh
;
// NOTE virtmem lock is held by virtmem caller
// XXX locking ok?
f
.
wconn
.
_atMu
.
RLock
();
f
.
_mu
.
lock
();
f
->
wconn
->
_atMu
.
RLock
();
f
->
_mu
.
lock
();
defer
([
&
]()
{
f
.
_mu
.
unlock
();
f
.
wconn
.
_atMu
.
RUnlock
();
f
->
_mu
.
unlock
();
f
->
wconn
->
_atMu
.
RUnlock
();
});
if
(
!
(
mmap
.
blk_start
<=
blk
&&
blk
<
mmap
.
blk_stop
()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment