Commit 2a889c7
committed
fuse: Add memory barrier in fuse_uring_destruct
Add an smp_rmb() before checking list states in fuse_uring_destruct() to
ensure proper ordering between list modifications and emptiness checks.
During connection teardown lists are checked without holding a lock,
and ithout this barrier, the CPU executing fuse_uring_destruct()
might see inconsistent list states, leading to false WARN_ON triggers
even though the lists have been properly emptied.
The smp_rmb() ensures we see the final consistent state of all lists
after teardown operations complete on other CPUs.
This fixes occasional false WARN_ON triggers during connection
teardown.
Signed-off-by: Bernd Schubert <bschubert@ddn.com>1 parent 5f0264c commit 2a889c7
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
0 commit comments