ip_mroute: Use NET_EPOCH_WAIT() macro

This makes it easier to grep the usage.

Reviewed by:	kp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45715
This commit is contained in:
Zhenlei Huang 2024-06-24 17:57:14 +08:00
parent 5dbf886104
commit 08a98731dd

View file

@ -768,7 +768,7 @@ X_ip_mrouter_done(void)
* Wait for all epoch sections to complete to ensure
* V_ip_mrouter = NULL is visible to others.
*/
epoch_wait_preempt(net_epoch_preempt);
NET_EPOCH_WAIT();
/* Stop and drain task queue */
taskqueue_block(V_task_queue);