Re: [PATCH net-next 1/5] net: ipa: use atomic exchange for suspend reference

From: David Miller
Date: Wed Sep 09 2020 - 17:14:16 EST


From: Alex Elder <elder@xxxxxxxxxx>
Date: Wed, 9 Sep 2020 08:43:44 -0500

> There is exactly one reference here; the "reference" is
> essentially a Boolean flag. So the value is always either
> 0 or 1.

Aha, then why not use a bitmask and test_and_set_bit() et al.?