Can Guo
36a7bd907c
block: pm: Fix possible unbalanced nr_pending
...
When someone calls blk_get_request() and blk_put_request()
without invoking blk_execute_rq() in between, nr_pending
will be unbalanced. Fix this by adding a flag, namely the
RQF_PM_ADDED, to track the usage of nr_pending, so that
blk_pm_put_request() won't touch nr_pending if the flag is
not set. Extra care should be given to blk_pm_requeue_request(),
because blk-flush.c inserts flush requests into queue without
calling blk_pm_add_request(), if the flush requests get requeued
by LLD, blk_pm_requeue_request() should anyways decrease
nr_pending in this situation to keep it balanced.
Change-Id: I7baa2049ac532e4fd22a0ce358133ba88266a314
Signed-off-by: Ziqi Chen <ziqichen@codeaurora.org >
Signed-off-by: Can Guo <cang@codeaurora.org >
2021-09-15 09:44:27 +08:00
..
2021-02-23 08:17:37 +05:30
2020-09-20 23:45:10 +05:30
2020-09-22 04:36:54 -07:00
2020-10-21 09:25:49 +05:30
2020-11-05 11:08:34 +01:00
2020-10-16 11:06:31 +05:30
2021-03-02 18:58:08 +05:30
2020-12-18 21:31:37 +05:30
2020-10-29 11:36:20 +01:00
2020-10-28 14:56:46 +05:30
2020-10-14 20:04:29 +05:30
2021-06-01 14:44:32 +05:30
2021-04-01 13:29:57 +05:30
2020-10-13 18:17:43 +05:30
2020-09-20 23:45:10 +05:30
2020-10-14 20:04:29 +05:30
2021-09-15 09:44:27 +08:00
2020-11-10 23:59:03 -08:00
2020-09-09 19:04:31 +02:00
2021-07-01 23:43:00 -07:00
2021-07-01 23:43:00 -07:00
2020-09-20 23:45:10 +05:30
2020-09-20 23:45:10 +05:30
2020-09-20 23:45:10 +05:30
2021-01-22 14:23:39 +05:30
2020-11-09 13:11:29 +00:00
2020-10-01 13:14:28 +02:00
2020-10-14 20:04:29 +05:30
2020-10-16 11:06:31 +05:30
2021-07-27 17:21:50 +05:30
2020-09-20 23:45:10 +05:30
2020-09-20 23:45:10 +05:30
2020-10-14 20:04:29 +05:30
2020-10-14 10:31:21 +02:00
2020-09-20 23:45:10 +05:30
2020-11-05 11:08:35 +01:00
2020-12-09 17:59:08 +05:30
2020-09-09 19:04:22 +02:00
2020-11-05 11:08:54 +01:00
2020-09-20 23:45:10 +05:30
2020-09-23 12:10:59 +02:00
2020-10-25 11:48:10 +01:00
2020-11-16 22:57:28 -08:00
2020-09-20 23:45:10 +05:30
2020-11-19 13:33:31 +05:30
2020-10-14 10:31:26 +02:00
2021-06-14 22:24:13 +05:30
2020-10-01 13:14:54 +02:00
2020-09-09 19:48:58 +02:00
2020-09-23 18:22:33 -07:00
2020-09-20 23:45:10 +05:30
2021-01-12 16:14:14 +05:30
2020-10-28 17:52:20 +05:30
2020-10-14 20:04:29 +05:30
2020-09-20 23:45:10 +05:30
2021-01-20 21:20:01 -08:00
2021-01-25 15:46:09 +05:30
2020-10-14 20:04:29 +05:30
2020-10-01 13:14:41 +02:00
2020-10-07 08:00:08 +02:00
2020-10-29 09:55:15 +01:00
2020-10-30 10:38:20 +01:00
2020-09-20 23:45:10 +05:30
2020-10-01 16:49:05 +02:00
2021-04-30 00:21:50 -07:00
2021-02-03 10:12:03 +05:30
2020-10-19 15:55:56 -07:00
2020-10-01 13:14:30 +02:00
2020-10-25 13:40:05 +01:00
2020-10-14 20:04:29 +05:30
2020-09-20 23:45:10 +05:30
2020-11-02 09:42:42 -08:00
2020-10-25 11:48:11 +01:00
2020-09-20 23:45:10 +05:30
2020-09-20 23:45:10 +05:30
2020-09-09 19:48:58 +02:00
2021-03-01 16:15:05 +05:30
2020-10-07 08:00:05 +02:00
2020-09-20 23:45:10 +05:30
2021-03-02 18:58:08 +05:30