bus/vmbus: use SMP memory barrier for signaling read
PATCH 1/1 bus/vmbus: use SMP memory barrier for signaling read
From: Long Li <[email protected]>
rte_smp_mb() uses the same locked ADD as the in-kernel vmbus driver, and it has slightly performance improvement over rte_mb().
Signed-off-by Long Li <[email protected]>
--- drivers/bus/vmbus/vmbus_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/vmbus/vmbus_channel.c +1 -1
@@ -214,7 +214,7 @@ void rte_vmbus_chan_signal_read(struct vmbus_channel *chan, uint32_t bytes_read)return ;/* Make sure reading of pending happens after new read index */ -rte_mb (); +rte_smp_mb (); pending_sz = rbr->vbr->pending_send;if (!pending_sz)
Signature · 1 line
2.25.1
Thomas Monjalon
Applied17/07/2020 22:18, Long Li:
Quoted 6 lines
From: Long Li <[email protected]>
rte_smp_mb()uses the same locked ADD as the in-kernel vmbus driver, and it has slightly performance improvement overrte_mb().Signed-off-by Long Li <[email protected]>
Applied, thanks