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
229b2a08
Commit
229b2a08
authored
Dec 10, 2010
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd4: add helper function to run callbacks
Signed-off-by:
J. Bruce Fields
<
bfields@redhat.com
>
parent
84f5f7cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
fs/nfsd/nfs4callback.c
fs/nfsd/nfs4callback.c
+7
-2
No files found.
fs/nfsd/nfs4callback.c
View file @
229b2a08
...
...
@@ -560,6 +560,11 @@ int set_callback_cred(void)
static
struct
workqueue_struct
*
callback_wq
;
static
void
run_nfsd4_cb
(
struct
nfsd4_callback
*
cb
)
{
queue_work
(
callback_wq
,
&
cb
->
cb_work
);
}
static
void
do_probe_callback
(
struct
nfs4_client
*
clp
)
{
struct
nfsd4_callback
*
cb
=
&
clp
->
cl_cb_null
;
...
...
@@ -574,7 +579,7 @@ static void do_probe_callback(struct nfs4_client *clp)
cb
->
cb_ops
=
&
nfsd4_cb_probe_ops
;
queue_work
(
callback_wq
,
&
cb
->
cb_work
);
run_nfsd4_cb
(
cb
);
}
/*
...
...
@@ -859,5 +864,5 @@ void nfsd4_cb_recall(struct nfs4_delegation *dp)
cb
->
cb_ops
=
&
nfsd4_cb_recall_ops
;
dp
->
dl_retries
=
1
;
queue_work
(
callback_wq
,
&
dp
->
dl_recall
.
cb_work
);
run_nfsd4_cb
(
&
dp
->
dl_recall
);
}
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