zhenwei pi d85b08c6e2 throttle: support read-only and write-only
Only one direction is necessary in several scenarios:
- a read-only disk
- operations on a device are considered as *write* only. For example,
  encrypt/decrypt/sign/verify operations on a cryptodev use a single
  *write* timer(read timer callback is defined, but never invoked).

Allow a single direction in throttle, this reduces memory, and uplayer
does not need a dummy callback any more.

Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20230728022006.1098509-4-pizhenwei@bytedance.com>
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
2023-08-29 10:49:24 +02:00
..
2023-05-30 17:37:26 +02:00
2023-03-20 12:43:50 +01:00
2023-05-23 15:20:15 +08:00
2020-01-06 18:41:32 +04:00
2023-03-20 12:43:50 +01:00
2022-04-21 17:03:51 +04:00
2023-06-13 17:42:01 +10:00
2019-09-11 08:46:17 +02:00
2023-07-08 07:30:17 +01:00
2023-04-24 11:29:00 +02:00
2020-12-10 17:16:44 +01:00
2023-03-13 15:23:37 +04:00
2022-06-29 10:56:12 +03:00
2018-12-20 10:29:08 +01:00
2023-02-02 11:48:20 +00:00
2023-03-28 15:23:10 -07:00
2023-05-08 11:10:49 +02:00
2023-04-27 16:39:43 +02:00
2018-08-24 20:26:37 +02:00
2021-04-01 15:27:44 +04:00