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
Kirill Smelkov
linux
Commits
e2885f06
Commit
e2885f06
authored
Dec 15, 2009
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: make mds ops interruptible
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
cf3e5c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
fs/ceph/mds_client.c
fs/ceph/mds_client.c
+9
-6
No files found.
fs/ceph/mds_client.c
View file @
e2885f06
...
...
@@ -1597,14 +1597,17 @@ int ceph_mdsc_do_request(struct ceph_mds_client *mdsc,
if
(
!
req
->
r_reply
)
{
mutex_unlock
(
&
mdsc
->
mutex
);
if
(
req
->
r_timeout
)
{
err
=
wait_for_completion_timeout
(
&
req
->
r_completion
,
req
->
r_timeout
);
if
(
err
>
0
)
err
=
0
;
else
if
(
err
==
0
)
err
=
(
long
)
wait_for_completion_interruptible_timeout
(
&
req
->
r_completion
,
req
->
r_timeout
);
if
(
err
==
0
)
req
->
r_reply
=
ERR_PTR
(
-
EIO
);
else
if
(
err
<
0
)
req
->
r_reply
=
ERR_PTR
(
err
);
}
else
{
wait_for_completion
(
&
req
->
r_completion
);
err
=
wait_for_completion_interruptible
(
&
req
->
r_completion
);
if
(
err
)
req
->
r_reply
=
ERR_PTR
(
err
);
}
mutex_lock
(
&
mdsc
->
mutex
);
}
...
...
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