> -----Original Message----- > From: Yuan Wang <[email protected]> > Sent: Wednesday, June 1, 2022 10:26 PM > To: [email protected]; Xia, Chenbo <[email protected]>; > [email protected] > Cc: Hu, Jiayu <[email protected]>; He, Xingguang > <[email protected]>; Wang, YuanX <[email protected]>; > [email protected] > Subject: [PATCH] net/vhost: add flag to control wait queuing > > update_queuing_status prevents PMD queue operations from affecting the > data plane by waiting for rx/tx_pkt_burst to stops accessing the vhost device. > In fact, it is only necessary to wait when destroy/stop the device, new/start > device and vring_state_changed cases do not need. > > Since vring is locked when vring state changes, unconditional waiting may > also cause deadlocks. > > To avoid deadlocks and unnecessary waiting, this patch adds a flag to control > whether waiting is required. > > Fixes: 9dc6bb0682 (net/vhost: fix access to freed memory) > Fixes: 1ce3c7fe14 (net/vhost: emulate device start/stop behavior) > Cc: [email protected] > > Signed-off-by: Yuan Wang <[email protected]> > ---
Tested-by: Wei Ling <[email protected]>

