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
762bb7e9
Commit
762bb7e9
authored
Feb 26, 2019
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS/flexfiles: Fix up sparse RCU annotations
Signed-off-by:
Trond Myklebust
<
trond.myklebust@hammerspace.com
>
parent
108bb4af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/flexfilelayout/flexfilelayout.c
+2
-2
No files found.
fs/nfs/flexfilelayout/flexfilelayout.c
View file @
762bb7e9
...
@@ -410,7 +410,7 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,
...
@@ -410,7 +410,7 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,
for
(
i
=
0
;
i
<
fls
->
mirror_array_cnt
;
i
++
)
{
for
(
i
=
0
;
i
<
fls
->
mirror_array_cnt
;
i
++
)
{
struct
nfs4_ff_layout_mirror
*
mirror
;
struct
nfs4_ff_layout_mirror
*
mirror
;
struct
cred
*
kcred
;
struct
cred
*
kcred
;
const
struct
cred
*
cred
;
const
struct
cred
__rcu
*
cred
;
kuid_t
uid
;
kuid_t
uid
;
kgid_t
gid
;
kgid_t
gid
;
u32
ds_count
,
fh_count
,
id
;
u32
ds_count
,
fh_count
,
id
;
...
@@ -501,7 +501,7 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,
...
@@ -501,7 +501,7 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,
goto
out_err_free
;
goto
out_err_free
;
kcred
->
fsuid
=
uid
;
kcred
->
fsuid
=
uid
;
kcred
->
fsgid
=
gid
;
kcred
->
fsgid
=
gid
;
cred
=
kcred
;
cred
=
RCU_INITIALIZER
(
kcred
)
;
if
(
lgr
->
range
.
iomode
==
IOMODE_READ
)
if
(
lgr
->
range
.
iomode
==
IOMODE_READ
)
rcu_assign_pointer
(
fls
->
mirror_array
[
i
]
->
ro_cred
,
cred
);
rcu_assign_pointer
(
fls
->
mirror_array
[
i
]
->
ro_cred
,
cred
);
...
...
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