]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5968bc0a1575a8cc2d67f203f23c7eac71b00c5
tree2df3e6869aa35681993d66bbde7999c7394d96a8
parent8a5aec51684aed2478b66da24f8a71e1f022abcc
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