Mike Snitzer
1ea3bdf9e9
dm integrity: use dm_bio_record and dm_bio_restore
...
[ Upstream commit 248aa2645aa7fc9175d1107c2593cc90d4af5a4e ]
In cases where dec_in_flight() has to requeue the integrity_bio_wait
work to transfer the rest of the data, the bio's __bi_remaining might
already have been decremented to 0, e.g.: if bio passed to underlying
data device was split via blk_queue_split().
Use dm_bio_{record,restore} rather than effectively open-coding them in
dm-integrity -- these methods now manage __bi_remaining too.
Depends-on: f7f0b057a9c1 ("dm bio record: save/restore bi_end_io and bi_integrity")
Reported-by: Daniel Glöckner <dg@emlix.com >
Suggested-by: Mikulas Patocka <mpatocka@redhat.com >
Signed-off-by: Mike Snitzer <snitzer@redhat.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-03-25 08:06:07 +01:00
..
2020-02-24 08:34:53 +01:00
2020-02-11 04:34:03 -08:00
2018-06-08 11:53:14 -04:00
2018-06-08 11:53:14 -04:00
2020-03-25 08:06:07 +01:00
2019-08-29 08:28:49 +02:00
2017-11-02 11:10:55 +01:00
2018-04-30 15:40:40 -04:00
2019-05-25 18:23:38 +02:00
2018-06-12 16:19:22 -07:00
2020-03-11 14:15:05 +01:00
2019-08-25 10:48:01 +02:00
2020-02-11 04:34:04 -08:00
2019-05-25 18:23:39 +02:00
2018-04-03 15:04:10 -04:00
2019-12-05 09:20:36 +01:00
2020-03-25 08:06:07 +01:00
2018-06-05 08:47:43 -06:00
2018-11-13 11:08:49 -08:00
2019-08-29 08:28:55 +02:00
2019-01-26 09:32:42 +01:00
2018-05-30 15:33:32 -06:00
2019-07-03 13:14:45 +02:00
2019-12-21 10:57:40 +01:00
2018-01-29 13:44:58 -05:00
2019-01-26 09:32:42 +01:00
2019-12-05 09:20:37 +01:00
2018-06-12 18:28:00 -07:00
2019-10-05 13:10:03 +02:00
2017-08-28 10:23:28 -04:00
2018-01-29 13:44:58 -05:00
2020-01-23 08:21:29 +01:00
2019-11-06 13:05:11 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-05-22 23:18:31 -07:00
2018-06-12 16:19:22 -07:00
2019-08-29 08:28:56 +02:00
2019-09-16 08:22:12 +02:00
2019-09-16 08:22:21 +02:00
2019-01-31 08:14:38 +01:00
2019-04-05 22:32:59 +02:00
2019-01-26 09:32:42 +01:00
2018-06-05 10:48:05 -07:00
2018-05-30 15:33:32 -06:00
2019-07-21 09:03:08 +02:00
2018-04-03 15:04:29 -04:00
2020-03-11 14:15:06 +01:00
2020-02-11 04:34:03 -08:00
2019-12-17 20:34:53 +01:00
2019-12-17 20:34:53 +01:00
2019-12-17 20:34:53 +01:00
2020-03-11 14:15:05 +01:00
2018-01-17 09:16:06 -05:00
2018-06-08 11:59:51 -04:00
2018-06-08 11:59:51 -04:00
2019-12-31 16:35:25 +01:00
2018-08-01 15:49:39 -07:00
2018-08-31 17:38:10 -07:00
2017-11-02 11:10:55 +01:00
2018-05-30 15:33:32 -06:00
2019-12-17 20:34:55 +01:00
2017-11-14 16:07:26 -08:00
2019-12-17 20:34:55 +01:00
2018-05-30 15:33:32 -06:00
2019-12-17 20:34:55 +01:00
2019-12-17 20:34:55 +01:00
2020-01-23 08:21:29 +01:00
2019-10-05 13:10:12 +02:00
2017-11-02 11:10:55 +01:00
2020-01-09 10:18:57 +01:00
2018-05-30 15:33:32 -06:00
2019-02-06 17:30:16 +01:00
2018-08-31 17:38:09 -07:00
2018-05-30 15:33:32 -06:00
2019-12-17 20:36:00 +01:00
2018-06-09 12:01:36 -07:00
2019-12-17 20:34:55 +01:00
2018-05-30 15:33:32 -06:00