Eric Dumazet
0c5ddb51e8
net/mlx4_en: initialize cmd.context_lock spinlock earlier
...
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 spinlock can lead
to hangs.
2) mlx4_cmd_wake_completions() can be called while lock
has not been initialized.
Lockdep complains, and current logic is not race prone.
It seems better to move the initialization earlier in
mlx4_load_one()
Signed-off-by: Eric Dumazet <edumazet@google.com >
Reported-by: Maciej Żenczykowski <maze@google.com >
Cc: Eugenia Emantayev <eugenia@mellanox.com >
Cc: Tariq Toukan <tariqt@mellanox.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-15 12:16:30 -07:00
..
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-05-20 18:33:37 -07:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-03-06 22:59:18 -05:00
2016-06-10 23:34:42 -07:00
2016-05-15 13:32:48 -04:00
2016-05-25 22:13:15 -07:00
2016-06-14 15:30:50 -04:00
2016-02-24 11:32:11 -05:00
2016-06-07 16:02:03 -07:00
2016-03-01 15:19:43 -05:00
2016-05-04 00:52:29 -04:00
2016-05-20 20:01:26 -07:00
2016-06-08 10:23:46 -07:00
2016-04-18 14:53:21 -04:00
2016-05-17 12:30:19 -04:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-04-21 15:35:07 -04:00
2016-05-29 22:35:21 -07:00
2016-05-16 21:51:41 -04:00
2016-06-07 16:15:59 -07:00
2016-05-04 14:16:49 -04:00
2016-05-23 13:54:03 -07:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-05-19 11:25:30 -07:00
2016-05-20 19:25:52 -04:00
2016-05-25 12:35:08 -07:00
2016-06-10 23:29:30 -07:00
2016-06-15 12:16:30 -07:00
2016-05-17 12:30:19 -04:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-04-28 14:21:14 -04:00
2016-05-04 14:16:49 -04:00
2016-04-26 15:53:05 -04:00
2016-04-16 22:34:40 -04:00
2016-05-04 14:16:49 -04:00
2016-02-25 16:51:05 -05:00
2016-01-10 22:50:14 -05:00
2016-04-28 17:19:58 -04:00
2016-05-04 14:16:49 -04:00
2016-02-17 16:15:45 -05:00
2016-06-01 22:04:54 -07:00
2016-05-04 14:16:49 -04:00
2016-05-17 14:31:09 -04:00
2016-05-17 12:26:56 -04:00
2016-05-17 13:58:49 -04:00
2016-03-27 22:39:22 -04:00
2016-05-04 14:16:49 -04:00
2016-06-08 11:18:45 -07:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-06-09 23:39:03 -07:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-06-12 22:01:14 -04:00
2016-05-04 17:07:14 -04:00
2016-05-20 19:50:07 -04:00
2016-04-26 01:10:26 -04:00
2016-05-04 14:16:49 -04:00
2016-05-16 13:55:49 -04:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-06-01 22:02:01 -07:00
2016-05-04 14:16:49 -04:00
2016-04-13 22:57:00 -04:00
2016-03-18 18:25:30 -04:00
2016-05-04 14:16:49 -04:00
2016-05-04 14:16:49 -04:00
2016-03-18 18:25:30 -04:00
2016-05-17 12:30:19 -04:00