]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: hv: fix a kernel warning in netvsc_linkstatus_callback()
authorHaiyang Zhang <haiyangz@microsoft.com>
Thu, 1 Sep 2011 19:19:42 +0000 (12:19 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:16 +0000 (09:42 -0800)
commite1afc0992140bea385c76f751a5728e2ac321b1d
treef01ac335da6f9e034b0e1ce60efa1bcdbd88f1c2
parent2ef6c9968b8f64206bddcd0b74a75c9b22faf2a8
staging: hv: fix a kernel warning in netvsc_linkstatus_callback()

commit c4b6a2eaf1c14810a4803d658f68614365978738 upstream.

netif_notify_peers() caused a kernel warning in netvsc_linkstatus_callback(),
because netvsc_linkstatus_callback() is within IRQ context. So we move
the first call to netif_notify_peers() into queued work as well, but with
zero delay.

In addition to "staging-next", this should also be back-ported to stable
kernels 2.6.32 and later.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/netvsc_drv.c