Jarek Poplawski 94833dfb8c [NET] ifb: set separate lockdep classes for queue locks
[   10.536424] =======================================================
[   10.536424] [ INFO: possible circular locking dependency detected ]
[   10.536424] 2.6.25-rc3-devel #3
[   10.536424] -------------------------------------------------------
[   10.536424] swapper/0 is trying to acquire lock:
[   10.536424]  (&dev->queue_lock){-+..}, at: [<c0299b4a>] 
dev_queue_xmit+0x175/0x2f3
[   10.536424]
[   10.536424] but task is already holding lock:
[   10.536424]  (&p->tcfc_lock){-+..}, at: [<f8a67154>] tcf_mirred+0x20/0x178 
[act_mirred]
[   10.536424]
[   10.536424] which lock already depends on the new lock.

lockdep warns of locking order while using ifb with sch_ingress and
act_mirred: ingress_lock, tcfc_lock, queue_lock (usually queue_lock
is at the beginning). This patch is only to tell lockdep that ifb is
a different device (e.g. from eth) and has its own pair of queue
locks. (This warning is a false-positive in common scenario of using
ifb; yet there are possible situations, when this order could be
dangerous; lockdep should warn in such a case.) (With suggestions by
David S. Miller)

Reported-and-tested-by: Denys Fedoryshchenko <denys@visp.net.lb>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Acked-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-03-20 17:05:13 -07:00
..
2008-02-03 04:28:34 -08:00
2008-01-28 15:10:29 -08:00
2008-02-23 23:54:59 -05:00
2008-02-15 10:51:51 -05:00
2008-02-03 15:42:53 +02:00
2008-03-05 06:34:29 -05:00
2008-01-28 15:10:31 -08:00
2008-01-28 15:10:31 -08:00
2008-03-05 06:34:34 -05:00
2008-02-03 15:42:53 +02:00
2007-10-17 20:23:30 -04:00
2008-03-17 08:11:03 -04:00
2008-01-28 15:04:05 -08:00
2008-01-12 17:41:04 -05:00
2008-01-28 15:07:12 -08:00
2008-01-28 15:07:12 -08:00
2007-10-10 16:51:57 -07:00
2008-02-11 10:29:33 -05:00
2007-07-10 12:41:08 -04:00
2007-11-05 17:57:30 -05:00
2008-01-28 15:07:12 -08:00
2007-10-10 16:55:27 -07:00
2008-01-28 15:03:59 -08:00
2008-01-28 15:04:05 -08:00
2008-01-28 15:09:19 -08:00
2007-10-10 16:51:43 -07:00
2008-01-31 19:27:17 -08:00
2008-01-31 19:27:17 -08:00
2008-02-23 19:49:48 -08:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:57:55 -08:00
2008-01-28 15:07:12 -08:00
2008-01-04 00:47:04 -08:00
2007-02-09 16:23:17 +00:00
2008-01-18 14:44:33 -05:00
2008-02-01 20:54:03 +11:00
2007-10-10 16:51:13 -07:00
2008-03-05 06:34:28 -05:00
2007-10-10 16:51:13 -07:00
2008-01-28 15:07:59 -08:00
2008-03-05 18:51:19 -08:00
2007-10-19 11:53:42 -07:00
2008-03-17 08:11:07 -04:00
2008-02-15 10:51:53 -05:00
2007-07-30 15:48:16 -04:00
2007-10-17 20:11:28 -04:00
2007-12-14 15:26:15 -05:00
2008-01-28 15:07:12 -08:00
2008-02-03 04:26:12 -08:00
2007-10-10 16:50:46 -07:00
2008-03-17 08:11:41 -04:00
2008-01-28 15:05:53 -08:00
2008-01-28 15:04:05 -08:00
2008-01-28 15:07:12 -08:00
2007-10-10 16:51:13 -07:00
2008-02-24 00:07:42 -05:00
2008-01-28 15:07:12 -08:00
2008-01-08 23:30:00 -08:00
2007-10-19 11:53:42 -07:00
2007-04-28 11:01:05 -04:00
2008-02-03 04:28:10 -08:00
2008-02-09 23:41:08 -08:00
2008-03-17 07:56:33 -04:00
2008-01-08 23:29:59 -08:00
2007-10-23 21:28:40 -04:00
2008-02-20 00:18:09 -08:00
2008-02-20 00:18:09 -08:00
2008-01-28 15:07:56 -08:00
2008-02-11 10:28:31 -05:00
2007-11-12 18:07:31 -08:00
2008-01-28 15:11:27 -08:00
2008-01-28 15:11:27 -08:00
2008-01-28 15:11:27 -08:00
2008-01-28 15:11:27 -08:00
2008-01-28 15:08:00 -08:00
2008-01-28 15:08:00 -08:00
2008-03-17 07:56:27 -04:00
2008-01-28 15:03:59 -08:00
2008-03-05 07:24:01 -05:00
2008-02-03 04:27:38 -08:00
2007-10-15 14:29:48 -04:00
2008-01-28 15:03:59 -08:00
2007-12-01 16:32:30 -05:00
2007-10-16 21:10:29 -04:00
2008-02-24 00:07:39 -05:00
2008-02-24 00:07:39 -05:00
2008-01-28 15:11:27 -08:00
2008-01-28 15:03:59 -08:00
2007-05-04 17:59:08 -07:00
2007-07-16 15:02:47 +02:00
2008-02-09 23:42:17 -08:00
2007-10-10 16:51:13 -07:00
2008-02-03 04:26:15 -08:00
2008-01-28 15:03:46 -08:00
2008-01-28 15:07:12 -08:00
2008-01-28 15:07:10 -08:00
2008-01-28 15:07:12 -08:00
2008-01-28 15:07:09 -08:00
2008-02-03 04:26:14 -08:00
2007-10-10 16:51:34 -07:00
2008-01-28 15:03:37 -08:00
2007-10-10 16:51:34 -07:00
2008-03-20 15:53:15 -07:00
2008-02-11 14:47:29 -05:00
2008-02-09 23:40:34 -08:00
2008-02-20 00:21:47 -08:00
2008-02-09 23:41:40 -08:00
2008-03-17 22:58:21 +11:00
2008-01-28 15:07:12 -08:00