Re: [PATCH net] net/mlx4_en: initialize cmd.context_lock spinlock earlier

2016-06-15 Thread David Miller
From: Eric Dumazet Date: Mon, 13 Jun 2016 07:50:25 -0700 > From: Eric Dumazet > > Maciej Żenczykowski reported lockdep warning a spinlock > was not registered before being held in mlx4_cmd_wake_completions() > > cmd.context_lock initialization is not at the right place. > > 1) mlx4_cmd_use_ev

[PATCH net] net/mlx4_en: initialize cmd.context_lock spinlock earlier

2016-06-13 Thread Eric Dumazet
From: Eric Dumazet Maciej Żenczykowski reported lockdep warning a spinlock was not registered before being held in mlx4_cmd_wake_completions() cmd.context_lock initialization is not at the right place. 1) mlx4_cmd_use_events() can be called multiple times. Calling spin_lock_init() on a live