MINOR: quic: Add a lock for RX packets

We must protect from concurrent the tree which stores the QUIC packets received
by the dgram I/O handler, these packets being also parsed by the xprt task.
This commit is contained in:
Frédéric Lécaille
2021-06-04 10:33:32 +02:00
committed by Amaury Denoyelle
parent 654c691731
commit 9fccace8b0
3 changed files with 11 additions and 0 deletions

View File

@@ -413,6 +413,7 @@ enum lock_label {
SSL_SERVER_LOCK,
SFT_LOCK, /* sink forward target */
IDLE_CONNS_LOCK,
QUIC_LOCK,
OTHER_LOCK,
/* WT: make sure never to use these ones outside of development,
* we need them for lock profiling!
@@ -466,6 +467,7 @@ static inline const char *lock_label(enum lock_label label)
case SSL_SERVER_LOCK: return "SSL_SERVER";
case SFT_LOCK: return "SFT";
case IDLE_CONNS_LOCK: return "IDLE_CONNS";
case QUIC_LOCK: return "QUIC";
case OTHER_LOCK: return "OTHER";
case DEBUG1_LOCK: return "DEBUG1";
case DEBUG2_LOCK: return "DEBUG2";