DLPX-93331 stbtrace invocations crash on 24.04 #101
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
stbtrace invocations fail with:
1.
In this kernel commit, the struct was moved from
linux/blkdev.h
tolinux/blk-mq.h
.In this kernel commit, the
rq_disk
field of the struct was removed and replaced withq->disk
.According to iovisor/bcc#5124 and the associated fix, this should be replaced with
blk_mq_end_request
Solution
linux/blk-mq.h
in our scripts.rq_disk
withq->disk
blk_account_io_done
withblk_mq_end_request
Testing Done
pre_checkin
: https://selfservice-jenkins.eng-tools-prd.aws.delphixcloud.com/job/blackbox-self-service/162274/consolestorage
which will run theanalytics_positive
suite: https://selfservice-jenkins.eng-tools-prd.aws.delphixcloud.com/job/blackbox-self-service/162276/consoleos_tests
which run theperformance_diagnostics_positive
suite to test estat: https://selfservice-jenkins.eng-tools-prd.aws.delphixcloud.com/job/blackbox-self-service/162278/console