Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
nexedi
linux
Commits
3772d26d
Commit
3772d26d
authored
May 03, 2011
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: use ihold() when i_lock is held
See
0444d76a
. Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
a1b49cb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/ceph/caps.c
fs/ceph/caps.c
+2
-2
No files found.
fs/ceph/caps.c
View file @
3772d26d
...
...
@@ -1357,7 +1357,7 @@ void __ceph_mark_dirty_caps(struct ceph_inode_info *ci, int mask)
list_add
(
&
ci
->
i_dirty_item
,
&
mdsc
->
cap_dirty
);
spin_unlock
(
&
mdsc
->
cap_dirty_lock
);
if
(
ci
->
i_flushing_caps
==
0
)
{
i
grab
(
inode
);
i
hold
(
inode
);
dirty
|=
I_DIRTY_SYNC
;
}
}
...
...
@@ -1991,7 +1991,7 @@ static void __take_cap_refs(struct ceph_inode_info *ci, int got)
ci
->
i_wr_ref
++
;
if
(
got
&
CEPH_CAP_FILE_BUFFER
)
{
if
(
ci
->
i_wrbuffer_ref
==
0
)
i
grab
(
&
ci
->
vfs_inode
);
i
hold
(
&
ci
->
vfs_inode
);
ci
->
i_wrbuffer_ref
++
;
dout
(
"__take_cap_refs %p wrbuffer %d -> %d (?)
\n
"
,
&
ci
->
vfs_inode
,
ci
->
i_wrbuffer_ref
-
1
,
ci
->
i_wrbuffer_ref
);
...
...
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