]> www.infradead.org Git - users/jedix/linux-maple.git/commit
md/raid5: fix spares errors about rcu usage
authorYu Kuai <yukuai3@huawei.com>
Sat, 15 Jun 2024 08:51:43 +0000 (16:51 +0800)
committerSong Liu <song@kernel.org>
Thu, 4 Jul 2024 06:11:53 +0000 (06:11 +0000)
commit2314c2e3a70521f055dd011245dccf6fd97c7ee0
treedc68a2e350ab0df67788a6cf973768b2cc7476b4
parent98d34c087249d39838874b83e17671e7d5eb1ca7
md/raid5: fix spares errors about rcu usage

As commit ad8606702f26 ("md/raid5: remove rcu protection to access rdev
from conf") explains, rcu protection can be removed, however, there are
three places left, there won't be any real problems.

drivers/md/raid5.c:8071:24: error: incompatible types in comparison expression (different address spaces):
drivers/md/raid5.c:8071:24:    struct md_rdev [noderef] __rcu *
drivers/md/raid5.c:8071:24:    struct md_rdev *
drivers/md/raid5.c:7569:25: error: incompatible types in comparison expression (different address spaces):
drivers/md/raid5.c:7569:25:    struct md_rdev [noderef] __rcu *
drivers/md/raid5.c:7569:25:    struct md_rdev *
drivers/md/raid5.c:7573:25: error: incompatible types in comparison expression (different address spaces):
drivers/md/raid5.c:7573:25:    struct md_rdev [noderef] __rcu *
drivers/md/raid5.c:7573:25:    struct md_rdev *

Fixes: ad8606702f26 ("md/raid5: remove rcu protection to access rdev from conf")
Cc: stable@vger.kernel.org
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240615085143.1648223-1-yukuai1@huaweicloud.com
drivers/md/raid5.c