Files
qemu/rust
Zhao Liu 0118c2d7e8 rust/bql: Ensure BQL locked early at BqlRefCell borrowing
At present, BqlRefCell checks whether BQL is locked when it blocks BQL
unlock (in bql_block_unlock).

But the such check should be done earlier - at the beginning of
BqlRefCell borrowing.

So convert BqlRefCell::borrow field from Cell<> to BqlCell<>, to
guarantee BQL is locked from the beginning when someone is trying to
borrow BqlRefCell.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20251113051937.4017675-6-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-12-27 10:11:10 +01:00
..
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:09 +01:00
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:09 +01:00
2025-12-27 10:11:10 +01:00
2024-11-05 14:18:15 +01:00