Logan Gunthorpe e38b043255 md/raid5: Annotate rdev/replacement accesses when nr_pending is elevated
There are a number of accesses to __rcu variables that should be safe
because nr_pending in the disk is known to be elevated.

Create a wrapper around rcu_dereference_protected() to annotate these
accesses and verify that nr_pending is non-zero.

This fixes a number of sparse warnings.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
2022-04-25 14:00:36 -07:00
..
2022-03-24 19:37:53 -07:00
2022-03-24 19:37:53 -07:00
2022-04-17 19:49:59 -06:00
2022-03-24 19:37:53 -07:00
2022-04-17 19:49:59 -06:00
2021-12-04 08:58:51 -08:00
2022-04-17 19:49:59 -06:00
2022-03-24 19:37:53 -07:00
2022-04-25 14:00:34 -07:00
2022-04-17 19:49:59 -06:00
2022-03-08 15:16:54 -08:00
2022-04-25 14:00:34 -07:00
2022-03-08 15:16:54 -08:00
2022-03-26 11:51:46 -07:00
2022-03-08 15:16:54 -08:00