Re: [PATCH net] net: use a work queue to defer net_disable_timestamp() work

2017-02-03 Thread David Miller
From: Eric Dumazet Date: Thu, 02 Feb 2017 10:31:35 -0800 > From: Eric Dumazet > > Dmitry reported a warning [1] showing that we were calling > net_disable_timestamp() -> static_key_slow_dec() from a non > process context. > > Grabbing a mutex while holding a spinlock or rcu_read_lock() > is n

[PATCH net] net: use a work queue to defer net_disable_timestamp() work

2017-02-02 Thread Eric Dumazet
From: Eric Dumazet Dmitry reported a warning [1] showing that we were calling net_disable_timestamp() -> static_key_slow_dec() from a non process context. Grabbing a mutex while holding a spinlock or rcu_read_lock() is not allowed. As Cong suggested, we now use a work queue. It is possible ne