gluster / glusterfs

Gluster Filesystem : Build your distributed storage in minutes
https://www.gluster.org
GNU General Public License v2.0
4.51k stars 1.07k forks source link

nfs: avoid 1-byte atomics #4328

Closed xhernandez closed 1 month ago

xhernandez commented 1 month ago

Some architectures, like s390x don't support 1-byte atomic operations. In the past this was already fixed by using a 4-byte integer instead of a boolean, but only for the s390x architecture and only for RHEL8 and SLES15 operating systems.

This means that the problem has appeared again when RHEL9 has been tested.

Since there's virtually no difference between using a boolean or an integer, this patch just removes all conditional checks and uses a 4-bytes integer in all architectures and operating systems.

xhernandez commented 1 month ago

/run regression