Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OpenBMC Firmware
talos-obmc-linux
Commits
0f8605f2
Commit
0f8605f2
authored
14 years ago
by
Sage Weil
Browse files
Options
Download
Email Patches
Plain Diff
ceph: clean up cap release loop vs spinlock
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
31e0cf8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
fs/ceph/mds_client.c
fs/ceph/mds_client.c
+3
-4
No files found.
fs/ceph/mds_client.c
View file @
0f8605f2
...
...
@@ -1143,10 +1143,8 @@ static void send_cap_releases(struct ceph_mds_client *mdsc,
struct
ceph_msg
*
msg
;
dout
(
"send_cap_releases mds%d
\n
"
,
session
->
s_mds
);
while
(
1
)
{
spin_lock
(
&
session
->
s_cap_lock
);
if
(
list_empty
(
&
session
->
s_cap_releases_done
))
break
;
spin_lock
(
&
session
->
s_cap_lock
);
while
(
!
list_empty
(
&
session
->
s_cap_releases_done
))
{
msg
=
list_first_entry
(
&
session
->
s_cap_releases_done
,
struct
ceph_msg
,
list_head
);
list_del_init
(
&
msg
->
list_head
);
...
...
@@ -1154,6 +1152,7 @@ static void send_cap_releases(struct ceph_mds_client *mdsc,
msg
->
hdr
.
front_len
=
cpu_to_le32
(
msg
->
front
.
iov_len
);
dout
(
"send_cap_releases mds%d %p
\n
"
,
session
->
s_mds
,
msg
);
ceph_con_send
(
&
session
->
s_con
,
msg
);
spin_lock
(
&
session
->
s_cap_lock
);
}
spin_unlock
(
&
session
->
s_cap_lock
);
}
...
...
This diff is collapsed.
Click to expand it.
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