md/raid5: Make is_inactive_blocked() helper
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 27 Jul 2022 21:05:57 +0000 (15:05 -0600)
committerSong Liu <song@kernel.org>
Thu, 28 Jul 2022 05:50:46 +0000 (22:50 -0700)
commit7d7a35b91e62ae0092cba5ff7b632cfdc6a5737c
tree3bfbf476113ad3c5602f2dc3630cde6a8f519cec
parentd0a27dfc7f293c581cfc260e6e1745eb3d009e5d
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>
drivers/md/raid5.c