netpoll: Move rx enable/disable into __dev_close_many
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Mar 2014 22:38:17 +0000 (15:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Mar 2014 21:58:37 +0000 (17:58 -0400)
commit3f4df2066b4e02cb609fa33b2eae8403b5821f4f
treee960a9af040e91c50c9bb56c48a76a4c873006e6
parent944e294857033dbe519a136cad05dc4e2570874e
netpoll: Move rx enable/disable into __dev_close_many

Today netpoll_rx_enable and netpoll_rx_disable are called from
dev_close and and __dev_close, and not from dev_close_many.

Move the calls into __dev_close_many so that we have a single call
site to maintain, and so that dev_close_many gains this protection as
well.  Which importantly makes batched network device deletes safe.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c