diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 27f62f746621a8758b7beb60b8b530604aa0fb74..cb1d918ecdf1d64bb475c21e55e2f75ef8ab526f 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -483,6 +483,7 @@ void napi_hash_del(struct napi_struct *napi); */ static inline void napi_disable(struct napi_struct *n) { + might_sleep(); set_bit(NAPI_STATE_DISABLE, &n->state); while (test_and_set_bit(NAPI_STATE_SCHED, &n->state)) msleep(1);