netdev
[Top] [All Lists]

synchronize_net()?

To: netdev@xxxxxxxxxxx
Subject: synchronize_net()?
From: Mitchell Blank Jr <mitch@xxxxxxxxxx>
Date: Fri, 12 Sep 2003 20:46:11 -0700
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
In 2.6.0-test5, synchronize_net() is simply:

/* Synchronize with packet receive processing. */
void synchronize_net(void) 
{
        might_sleep();
        synchronize_kernel();
}

The "might_sleep()" isn't needed -- synchronize_kernel() calls
wait_for_completion() which also calls it.  Is there any reason for
keeping synchronize_net() around as a seperate function?  Maybe
it should just be a #define instead.

-Mitch

<Prev in Thread] Current Thread [Next in Thread>