aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/generic.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2018-05-23 10:51:29 +0000
committerDavid Howells <[email protected]>2018-05-23 10:51:29 +0000
commit1588def91d58bf70afe1acf9fc0331fa26e974f4 (patch)
treed018c9b539d1c789b4dc8bba4c59226a22433a2d /fs/proc/generic.c
parentafs: Fix a Sparse warning in xdr_decode_AFSFetchStatus() (diff)
downloadkernel-1588def91d58bf70afe1acf9fc0331fa26e974f4.tar.gz
kernel-1588def91d58bf70afe1acf9fc0331fa26e974f4.zip
afs: Mark afs_net::ws_cell as __rcu and set using rcu functions
The afs_net::ws_cell member is sometimes used under RCU conditions from within an seq-readlock. It isn't, however, marked __rcu and it isn't set using the proper RCU barrier-imposing functions. Fix this by annotating it with __rcu and using appropriate barriers to make sure accesses are correctly ordered. Without this, the code can produce the following warning: >> fs/afs/proc.c:151:24: sparse: incompatible types in comparison expression (different address spaces) Fixes: f044c8847bb6 ("afs: Lay the groundwork for supporting network namespaces") Reported-by: kbuild test robot <[email protected]> Signed-off-by: David Howells <[email protected]>
Diffstat (limited to 'fs/proc/generic.c')
0 files changed, 0 insertions, 0 deletions