]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5-cache: Annotate pslot with __rcu notation
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 8 Jun 2022 16:27:53 +0000 (10:27 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:14:32 +0000 (17:14 -0600)
commit84e2860179fe975db984c039f62e4f1c0f71aecf
treedaa03a56356e8c4840561c1381ab2953ccaef95c
parentf0f7cc1ba396e78544310a1805c645fb37e2da05
md/raid5-cache: Annotate pslot with __rcu notation

radix_tree_lookup_slot() and radix_tree_replace_slot() API expect the
slot returned and looked up to be marked with __rcu. Otherwise
sparse warnings are generated:

  drivers/md/raid5-cache.c:2939:23: warning: incorrect type in
assignment (different address spaces)
  drivers/md/raid5-cache.c:2939:23:    expected void **pslot
  drivers/md/raid5-cache.c:2939:23:    got void [noderef] __rcu **

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid5-cache.c