md/raid5: Make is_inactive_blocked() helper
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 27 Jul 2022 21:05:57 +0000 (15:05 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Aug 2022 03:08:53 +0000 (21:08 -0600)
commit3514da58be9c40b4e377d73a21a56e89145f2843
tree2df3e6869aa35681993d66bbde7999c7394d96a8
parent5165ed40a1f0a3bf03526aad96df736556fbe64f
md/raid5: Make is_inactive_blocked() helper

The logic to wait_for_stripe is difficult to parse being on so many
lines and with confusing operator precedence. Move it to a helper
function to make it easier to read.

No functional changes intended.

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