-
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
Assembler code for atomic_sub_64 seems wrong (i386) #5671
Comments
Yes, that does look wrong. @ironMann could you comment on the this. The good news is that is the user space implementation of these atomics. They're mainly used for statistics tracking when testing ZFS in user space with ztest.
|
Agree, that should be |
behlendorf
added a commit
to behlendorf/zfs
that referenced
this issue
Jan 31, 2017
The atomic_sub_64() should use sbbl instead of adcl. In user space these atomics are used for statistics tracking and aren't critical which explain how this was overlooked. The kernel space implementation of these atomics are layered on the architecture specific implementations provided by the kernel. Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#5671
wli5
pushed a commit
to wli5/zfs
that referenced
this issue
Feb 28, 2017
The atomic_sub_64() should use sbbl instead of adcl. In user space these atomics are used for statistics tracking and aren't critical which explain how this was overlooked. The kernel space implementation of these atomics are layered on the architecture specific implementations provided by the kernel. Reviewed by: Stefan Ring <[email protected]> Reviewed-by: Gvozden Neskovic <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#5671 Closes openzfs#5717
wli5
pushed a commit
to wli5/zfs
that referenced
this issue
Feb 28, 2017
The atomic_sub_64() should use sbbl instead of adcl. In user space these atomics are used for statistics tracking and aren't critical which explain how this was overlooked. The kernel space implementation of these atomics are layered on the architecture specific implementations provided by the kernel. Reviewed by: Stefan Ring <[email protected]> Reviewed-by: Gvozden Neskovic <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#5671 Closes openzfs#5717
l1k
pushed a commit
to l1k/zfs
that referenced
this issue
Apr 17, 2017
The atomic_sub_64() should use sbbl instead of adcl. In user space these atomics are used for statistics tracking and aren't critical which explain how this was overlooked. The kernel space implementation of these atomics are layered on the architecture specific implementations provided by the kernel. Reviewed by: Stefan Ring <[email protected]> Reviewed-by: Gvozden Neskovic <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#5671 Closes openzfs#5717
tonyhutter
pushed a commit
to tonyhutter/zfs
that referenced
this issue
May 18, 2017
The atomic_sub_64() should use sbbl instead of adcl. In user space these atomics are used for statistics tracking and aren't critical which explain how this was overlooked. The kernel space implementation of these atomics are layered on the architecture specific implementations provided by the kernel. Reviewed by: Stefan Ring <[email protected]> Reviewed-by: Gvozden Neskovic <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#5671 Closes openzfs#5717
tonyhutter
pushed a commit
that referenced
this issue
Jun 9, 2017
The atomic_sub_64() should use sbbl instead of adcl. In user space these atomics are used for statistics tracking and aren't critical which explain how this was overlooked. The kernel space implementation of these atomics are layered on the architecture specific implementations provided by the kernel. Reviewed by: Stefan Ring <[email protected]> Reviewed-by: Gvozden Neskovic <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #5671 Closes #5717
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While poring over the atomic code I noticed that
atomic_sub_64
inlib/libspl/asm-i386/atomic.S
looks wrong. Shouldn't it be subl followed by sbbl instead of adcl?The text was updated successfully, but these errors were encountered: