Files
linux-stable-mirror/lib
Kent Overstreet ee526b88ca closures: Fix race in closure_sync()
As pointed out by Linus, closure_sync() was racy; we could skip blocking
immediately after a get() and a put(), but then that would skip any
barrier corresponding to the other thread's put() barrier.

To fix this, always do the full __closure_sync() sequence whenever any
get() has happened and the closure might have been used by other
threads.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-10-30 21:48:22 -04:00
..
2023-06-09 17:44:13 -07:00
2023-04-08 13:45:37 -07:00
2023-10-30 21:48:22 -04:00
2023-02-02 22:50:01 -08:00
2023-02-02 22:50:01 -08:00
2023-09-11 23:59:47 -04:00
2023-03-19 10:02:04 -07:00
2022-10-03 14:03:21 -07:00
2023-10-19 14:47:33 -04:00
2023-08-21 13:46:25 -07:00
2023-04-17 18:01:23 +02:00
2023-10-16 12:44:06 -04:00
2023-08-24 16:20:18 -07:00
2023-10-16 12:44:06 -04:00
2022-10-03 17:34:32 -07:00
2023-07-21 11:40:20 -06:00