-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove list_size struct member from list implementation #15812
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to fix the checksytle error.
I do wonder if it is worth going into each call sight for list_create()
and removing the passed second size parameter? That might be overkill though. I will leave it up to others to decide if that should also be done.
2f38ed7
to
b0eb8e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Just one comment, but I do not insist.
Removed the list_size struct member as it was only used in a single assertion, as mentioned in PR openzfs#15478. Signed-off-by: MigeljanImeri <imerimigel@gmail.com>
Removed the list_size struct member as it was only used in a single assertion, as mentioned in PR openzfs#15478. Signed-off-by: MigeljanImeri <imerimigel@gmail.com>
b0eb8e5
to
4ed348a
Compare
When merging I intentionally squashed these two commits. This is such a small change I don't think we need to leave the kernel and user portions split just in case we end up wanting to revert part of it. |
Removed the list_size struct member as it was only used in a single assertion, as mentioned in PR openzfs#15478. Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: MigeljanImeri <imerimigel@gmail.com> Closes openzfs#15812
Removed the list_size struct member as it was only used in a single assertion, as mentioned in PR openzfs#15478. Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: MigeljanImeri <imerimigel@gmail.com> Closes openzfs#15812
Motivation and Context
In a previous pull request I opened (#15478), I added an additional counter to track the number of pending sync IO operations as it wasn't properly being tracked before. This adds extra space requirements to the vdev_queue struct and to counteract this increase it was suggested to remove the list_size struct member as it was only used in a few asserts in the code.
Description
I removed the list_size struct member in the list implementations in two separate commits, in order to keep the kernel list and the user-space list changes separate, in case this has to be reverted in the future.
How Has This Been Tested?
I ran zloop.sh and no apparent crashes were seen.
Types of changes
Checklist:
Signed-off-by
.