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
1afd27a6
Commit
1afd27a6
authored
Mar 02, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4c0fbef3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+1
-2
wcfs/client/wcfs.h
wcfs/client/wcfs.h
+1
-0
No files found.
wcfs/client/wcfs.cpp
View file @
1afd27a6
...
@@ -969,7 +969,7 @@ error _Mapping::unmap() {
...
@@ -969,7 +969,7 @@ error _Mapping::unmap() {
//
//
// The following locks must be held by caller:
// The following locks must be held by caller:
// - f.wconn.atMu
// - f.wconn.atMu
// - f._mu
// - f._mu
XXX not needed? (f._mmaps and f._pinned are not used)
error
_Mapping
::
_remmapblk
(
int64_t
blk
,
zodb
::
Tid
at
)
{
error
_Mapping
::
_remmapblk
(
int64_t
blk
,
zodb
::
Tid
at
)
{
_Mapping
*
mmap
=
this
;
_Mapping
*
mmap
=
this
;
FileH
f
=
mmap
->
fileh
;
FileH
f
=
mmap
->
fileh
;
...
@@ -1030,7 +1030,6 @@ error _Mapping::remmap_blk(int64_t blk) {
...
@@ -1030,7 +1030,6 @@ error _Mapping::remmap_blk(int64_t blk) {
FileH
f
=
mmap
.
fileh
;
FileH
f
=
mmap
.
fileh
;
// NOTE virtmem lock is held by virtmem caller
// NOTE virtmem lock is held by virtmem caller
// XXX locking ok?
f
->
wconn
->
_atMu
.
RLock
();
f
->
wconn
->
_atMu
.
RLock
();
f
->
_mu
.
lock
();
f
->
_mu
.
lock
();
defer
([
&
]()
{
defer
([
&
]()
{
...
...
wcfs/client/wcfs.h
View file @
1afd27a6
...
@@ -271,6 +271,7 @@ public:
...
@@ -271,6 +271,7 @@ public:
// Use .unmap to release virtual memory resources used by mapping.
// Use .unmap to release virtual memory resources used by mapping.
//
//
// Except unmap, it is safe to use Mapping from multiple threads simultaneously.
// Except unmap, it is safe to use Mapping from multiple threads simultaneously.
// XXX unmap wrt remmapblk? -> crash? or protect?
typedef
refptr
<
struct
_Mapping
>
Mapping
;
typedef
refptr
<
struct
_Mapping
>
Mapping
;
struct
_Mapping
:
object
{
struct
_Mapping
:
object
{
FileH
fileh
;
FileH
fileh
;
...
...
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