Vlad Buslov
4f8116c850
net: sched: protect block offload-related fields with rw_semaphore
...
In order to remove dependency on rtnl lock, extend tcf_block with 'cb_lock'
rwsem and use it to protect flow_block->cb_list and related counters from
concurrent modification. The lock is taken in read mode for read-only
traversal of cb_list in tc_setup_cb_call() and write mode in all other
cases. This approach ensures that:
- cb_list is not changed concurrently while filters is being offloaded on
block.
- block->nooffloaddevcnt is checked while holding the lock in read mode,
but is only changed by bind/unbind code when holding the cb_lock in write
mode to prevent concurrent modification.
Signed-off-by: Vlad Buslov <vladbu@mellanox.com >
Acked-by: Jiri Pirko <jiri@mellanox.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-08-26 14:17:43 -07:00
..
2019-05-30 11:29:21 -07:00
2019-08-17 13:54:40 +03:00
2019-05-30 11:29:22 -07:00
2019-08-19 11:54:03 -07:00
2019-08-09 13:03:30 -07:00
2019-06-19 17:09:07 +02:00
2019-06-05 17:37:07 +02:00
2019-08-19 18:27:29 -07:00
2019-08-06 18:44:57 -07:00
2019-03-21 13:26:42 -07:00
2019-06-12 11:00:11 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-02-28 08:24:23 -07:00
2019-06-05 17:37:05 +02:00
2019-05-05 11:25:49 -07:00
2019-01-23 11:18:00 -08:00
2019-06-19 17:09:55 +02:00
2019-05-24 17:37:53 +02:00
2019-05-21 11:28:40 +02:00
2019-07-04 12:30:48 -07:00
2019-07-04 12:30:48 -07:00
2019-04-27 09:07:04 -07:00
2019-06-05 17:37:06 +02:00
2019-05-21 11:28:45 +02:00
2019-06-19 17:09:55 +02:00
2019-08-21 11:07:35 +02:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:45 +02:00
2019-05-30 11:26:32 -07:00
2019-04-19 14:07:40 -07:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:29:52 -07:00
2019-08-17 12:40:08 -07:00
2019-05-21 11:52:39 +02:00
2019-05-21 11:52:39 +02:00
2019-08-17 12:40:08 -07:00
2019-07-30 15:12:50 -07:00
2019-07-01 10:48:34 -07:00
2019-06-19 17:09:55 +02:00
2019-04-22 21:50:53 -07:00
2019-07-11 14:22:53 -07:00
2019-07-09 12:11:59 -07:00
2019-08-21 15:55:17 -07:00
2019-02-27 12:50:17 -08:00
2019-06-05 17:30:27 +02:00
2019-06-05 17:30:27 +02:00
2018-11-17 21:37:29 -08:00
2019-04-27 17:07:22 -04:00
2019-03-22 12:09:31 -07:00
2018-12-10 15:53:04 -08:00
2019-07-01 10:58:23 -07:00
2019-06-09 19:40:10 -07:00
2019-05-30 11:26:32 -07:00
2019-02-22 12:56:24 -08:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-04-22 21:50:53 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-03 13:51:54 -07:00
2019-05-30 11:26:32 -07:00
2019-08-08 15:55:10 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-09 20:10:19 -07:00
2019-02-08 21:50:15 -08:00
2019-05-30 11:26:32 -07:00
2019-06-24 10:18:49 -07:00
2019-06-27 21:06:39 -07:00
2019-06-18 20:48:45 -04:00
2019-06-24 10:18:48 -07:00
2019-02-27 12:50:17 -08:00
2019-07-08 19:48:57 -07:00
2019-06-14 19:51:12 -07:00
2019-06-19 11:37:47 -04:00
2019-05-22 17:48:43 -07:00
2019-07-08 19:38:03 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-04-23 19:42:29 -07:00
2019-07-31 11:00:52 +02:00
2019-05-30 11:26:41 -07:00
2019-05-21 11:28:45 +02:00
2019-06-05 17:36:38 +02:00
2019-06-05 17:36:38 +02:00
2019-07-22 12:10:54 -07:00
2019-04-17 23:19:07 -07:00
2019-08-09 13:14:46 -07:00
2019-05-21 11:28:45 +02:00
2019-08-13 20:37:16 -07:00
2019-05-30 11:26:32 -07:00
2019-04-11 13:59:49 -07:00
2019-06-10 10:44:56 -07:00
2019-07-08 14:58:04 -07:00
2019-05-30 11:26:32 -07:00
2019-08-19 11:54:03 -07:00
2019-05-30 11:26:32 -07:00
2019-04-22 21:50:53 -07:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:46:57 -04:00
2019-06-27 21:06:39 -07:00
2019-04-22 21:47:25 -07:00
2019-08-26 14:17:43 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-02-21 10:34:37 -08:00
2019-05-30 11:26:32 -07:00
2019-06-15 01:21:19 +02:00
2019-08-08 22:39:35 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-13 16:24:57 -07:00
2019-05-30 11:26:32 -07:00
2019-08-05 13:15:30 -07:00
2019-03-29 10:53:45 -07:00
2019-05-31 08:34:32 -07:00
2019-06-05 17:37:05 +02:00
2019-06-06 11:08:55 -07:00
2019-06-05 17:30:29 +02:00
2019-06-19 11:23:13 -04:00
2019-07-08 19:48:57 -07:00
2019-06-19 11:23:13 -04:00
2019-07-01 06:16:40 +02:00