Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
bcb56164
Commit
bcb56164
authored
Dec 05, 2009
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv41: More cleanups
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
35dc1d74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+3
-4
No files found.
fs/nfs/nfs4proc.c
View file @
bcb56164
...
@@ -332,7 +332,7 @@ nfs4_free_slot(struct nfs4_slot_table *tbl, u8 free_slotid)
...
@@ -332,7 +332,7 @@ nfs4_free_slot(struct nfs4_slot_table *tbl, u8 free_slotid)
/* update highest_used_slotid when it is freed */
/* update highest_used_slotid when it is freed */
if
(
slotid
==
tbl
->
highest_used_slotid
)
{
if
(
slotid
==
tbl
->
highest_used_slotid
)
{
slotid
=
find_last_bit
(
tbl
->
used_slots
,
tbl
->
max_slots
);
slotid
=
find_last_bit
(
tbl
->
used_slots
,
tbl
->
max_slots
);
if
(
slotid
>=
0
&&
slotid
<
tbl
->
max_slots
)
if
(
slotid
<
tbl
->
max_slots
)
tbl
->
highest_used_slotid
=
slotid
;
tbl
->
highest_used_slotid
=
slotid
;
else
else
tbl
->
highest_used_slotid
=
-
1
;
tbl
->
highest_used_slotid
=
-
1
;
...
@@ -363,9 +363,8 @@ static void nfs41_sequence_free_slot(const struct nfs_client *clp,
...
@@ -363,9 +363,8 @@ static void nfs41_sequence_free_slot(const struct nfs_client *clp,
dprintk
(
"%s COMPLETE: Session Drained
\n
"
,
__func__
);
dprintk
(
"%s COMPLETE: Session Drained
\n
"
,
__func__
);
complete
(
&
clp
->
cl_session
->
complete
);
complete
(
&
clp
->
cl_session
->
complete
);
}
}
}
else
{
}
else
rpc_wake_up_next
(
&
tbl
->
slot_tbl_waitq
);
rpc_wake_up_next
(
&
tbl
->
slot_tbl_waitq
);
}
spin_unlock
(
&
tbl
->
slot_tbl_lock
);
spin_unlock
(
&
tbl
->
slot_tbl_lock
);
res
->
sr_slotid
=
NFS4_MAX_SLOT_TABLE
;
res
->
sr_slotid
=
NFS4_MAX_SLOT_TABLE
;
}
}
...
@@ -469,9 +468,9 @@ static int nfs41_setup_sequence(struct nfs4_session *session,
...
@@ -469,9 +468,9 @@ static int nfs41_setup_sequence(struct nfs4_session *session,
* The state manager will wait until the slot table is empty.
* The state manager will wait until the slot table is empty.
* Schedule the reset thread
* Schedule the reset thread
*/
*/
dprintk
(
"%s Schedule Session Reset
\n
"
,
__func__
);
rpc_sleep_on
(
&
tbl
->
slot_tbl_waitq
,
task
,
NULL
);
rpc_sleep_on
(
&
tbl
->
slot_tbl_waitq
,
task
,
NULL
);
spin_unlock
(
&
tbl
->
slot_tbl_lock
);
spin_unlock
(
&
tbl
->
slot_tbl_lock
);
dprintk
(
"%s Schedule Session Reset
\n
"
,
__func__
);
return
-
EAGAIN
;
return
-
EAGAIN
;
}
}
...
...
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