aboutsummaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2022-06-16 13:19:36 -0600
committerJens Axboe <[email protected]>2022-08-02 17:14:42 -0600
commitf4aec6a0973879cb25bfecc2e918c519e3dfff04 (patch)
tree9008ab7ce0afee8cae1b2f20a9fb472ece18a82f /scripts/stackusage
parent1baa1126e0f6d366187f740144947b6cf619b4f2 (diff)
md/raid5: Factor out helper from raid5_make_request() loop
Factor out the inner loop of raid5_make_request() into it's own helper called make_stripe_request(). The helper returns a number of statuses: SUCCESS, RETRY, SCHEDULE_AND_RETRY and FAIL. This makes the code a bit easier to understand and allows the SCHEDULE_AND_RETRY path to be made common. A context structure is added to contain do_flush. It will be used more in subsequent patches for state that needs to be kept outside the loop. No functional changes intended. This will be cleaned up further in subsequent patches to untangle the gen_lock and do_prepare logic further. Signed-off-by: Logan Gunthorpe <[email protected]> Signed-off-by: Song Liu <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions