Mikulas Patocka fb1857c2e4 rds: add missing barrier to release_refill
commit 9f414eb409daf4f778f011cf8266d36896bb930b upstream.

The functions clear_bit and set_bit do not imply a memory barrier, thus it
may be possible that the waitqueue_active function (which does not take
any locks) is moved before clear_bit and it could miss a wakeup event.

Fix this bug by adding a memory barrier after clear_bit.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-25 11:37:49 +02:00
..
2020-09-18 14:12:43 -07:00
2021-11-18 14:03:44 +01:00
2021-11-18 14:03:44 +01:00
2021-11-18 14:03:44 +01:00
2021-11-18 14:03:44 +01:00
2020-05-20 14:08:06 -07:00
2020-07-24 15:41:54 -07:00
2020-05-28 11:11:44 -07:00
2020-05-28 11:11:45 -07:00
2021-06-16 12:01:36 +02:00
2019-02-04 14:59:11 -08:00