diff options
| author | 2022-04-07 10:57:12 -0600 | |
|---|---|---|
| committer | 2022-04-25 14:00:37 -0700 | |
| commit | 4f4ee2bf32860e4aa3b07be3fc9224fbe6cce4fe (patch) | |
| tree | a68d4a8c8cef1b094044a720eaf31ed18e52ea6d /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | md/raid5: Annotate rdev/replacement access when mddev_lock is held (diff) | |
| download | linux-dev-4f4ee2bf32860e4aa3b07be3fc9224fbe6cce4fe.tar.xz linux-dev-4f4ee2bf32860e4aa3b07be3fc9224fbe6cce4fe.zip | |
md/raid5-ppl: Annotate with rcu_dereference_protected()
To suppress the last remaining sparse warnings about accessing
rdev, add rcu_dereference_protected calls to a couple places
in raid5-ppl. All of these places are called under raid5_run and
therefore are occurring before the array has started and is thus
safe.
There's no sensible check to do for the second argument of
rcu_dereference_protected() so a comment is added instead.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
