summaryrefslogtreecommitdiff
path: root/Kernel/Bus/VirtIO/Queue.h
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-08-18 21:46:28 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-08-19 20:26:47 -0700
commit4314c25cf2a60f7692821b10a6e759d24ae1a1b6 (patch)
tree8b6e9c7a58afdca56b7ae02d324433884b8687da /Kernel/Bus/VirtIO/Queue.h
parent4809dc8ec28b8573b250a112b9a7dae4cde10e86 (diff)
downloadserenity-4314c25cf2a60f7692821b10a6e759d24ae1a1b6.zip
Kernel: Require lock rank for Spinlock construction
All users which relied on the default constructor use a None lock rank for now. This will make it easier to in the future remove LockRank and actually annotate the ranks by searching for None.
Diffstat (limited to 'Kernel/Bus/VirtIO/Queue.h')
-rw-r--r--Kernel/Bus/VirtIO/Queue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Bus/VirtIO/Queue.h b/Kernel/Bus/VirtIO/Queue.h
index 12a5940e15..6563779866 100644
--- a/Kernel/Bus/VirtIO/Queue.h
+++ b/Kernel/Bus/VirtIO/Queue.h
@@ -96,7 +96,7 @@ private:
QueueDriver* m_driver { nullptr };
QueueDevice* m_device { nullptr };
NonnullOwnPtr<Memory::Region> m_queue_region;
- Spinlock m_lock;
+ Spinlock m_lock { LockRank::None };
friend class QueueChain;
};