Coly Li
ff2695e52c
bcache: put bch_bio_map() back to correct location in journal_write_unlocked()
...
Commit a7c50c940477 ("block: pass a block_device and opf to bio_reset")
moves bch_bio_map() inside journal_write_unlocked() next to the location
where the modified bio_reset() was called.
This change is wrong because calling bch_bio_map() immediately after
bio_reset(), a BUG_ON(!bio->bi_iter.bi_size) inside bch_bio_map() will
be triggered and panic the kernel.
This patch puts bch_bio_map() back to its original correct location in
journal_write_unlocked() and avoid the BUG_ON().
Fixes: a7c50c940477 ("block: pass a block_device and opf to bio_reset")
Signed-off-by: Coly Li <colyli@suse.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220419160425.4148-2-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-04-19 11:28:17 -06:00
..
2022-04-19 11:28:17 -06:00
2022-01-04 13:58:19 -05:00
2021-10-27 16:53:47 -04:00
2021-10-27 16:53:47 -04:00
2019-11-05 14:53:03 -05:00
2017-06-09 09:27:32 -06:00
2020-01-07 12:07:08 -05:00
2017-03-07 11:30:16 -05:00
2021-10-18 06:17:02 -06:00
2021-11-09 11:02:04 -08:00
2017-11-02 11:10:55 +01:00
2018-04-30 15:40:40 -04:00
2017-03-07 13:28:31 -05:00
2021-10-18 14:43:22 -06:00
2017-03-07 13:28:31 -05:00
2017-03-07 13:28:31 -05:00
2022-02-22 10:35:53 -05:00
2017-03-07 13:28:31 -05:00
2022-03-10 13:44:57 -05:00
2021-04-19 13:20:31 -04:00
2020-03-27 14:42:51 -04:00
2022-03-02 12:15:54 -05:00
2022-04-01 13:19:27 -04:00
2022-03-24 19:37:53 -07:00
2022-03-10 13:44:56 -05:00
2021-10-18 14:43:22 -06:00
2022-02-22 21:11:08 -05:00
2021-10-18 14:43:22 -06:00
2021-10-18 14:43:22 -06:00
2021-10-18 14:43:22 -06:00
2022-02-22 10:42:41 -05:00
2021-08-20 15:59:47 -04:00
2020-08-04 15:51:28 -04:00
2022-04-01 10:31:23 -04:00
2021-06-28 16:30:13 -04:00
2022-03-24 19:37:53 -07:00
2022-04-01 10:29:43 -04:00
2021-06-15 15:42:03 -04:00
2022-02-22 21:11:08 -05:00
2021-08-10 13:34:23 -04:00
2022-02-02 07:49:59 -07:00
2021-10-18 14:43:22 -06:00
2022-03-24 19:37:53 -07:00
2020-05-15 10:29:36 -04:00
2021-10-18 06:17:01 -06:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-10-18 14:43:22 -06:00
2018-06-12 18:28:00 -07:00
2022-03-24 19:37:53 -07:00
2019-03-05 14:48:50 -05:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2022-02-02 07:49:59 -07:00
2022-02-21 15:35:39 -05:00
2022-02-21 15:35:39 -05:00
2022-02-22 21:11:08 -05:00
2021-10-18 14:43:22 -06:00
2022-01-06 09:48:55 -05:00
2022-03-24 19:37:53 -07:00
2019-04-25 15:38:52 -04:00
2022-02-22 13:55:50 -05:00
2022-02-22 13:55:50 -05:00
2022-03-10 13:44:56 -05:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2021-08-10 13:34:23 -04:00
2021-04-14 14:28:29 -04:00
2021-04-14 14:28:29 -04:00
2021-11-09 11:02:04 -08:00
2021-05-25 16:14:05 -04:00
2020-08-04 15:48:13 -04:00
2020-07-13 11:47:33 -04:00
2022-02-02 07:49:59 -07:00
2020-12-04 18:04:35 -05:00
2022-02-22 21:11:08 -05:00
2022-03-02 12:15:35 -05:00
2021-06-04 12:07:24 -04:00
2022-03-02 12:15:35 -05:00
2022-03-02 12:15:35 -05:00
2022-04-01 13:23:12 -04:00
2021-12-04 08:58:51 -08:00
2022-02-16 19:39:09 -07:00
2021-10-27 16:53:47 -04:00
2020-08-23 17:36:59 -05:00
2021-11-02 11:41:44 -07:00
2018-08-01 15:49:39 -07:00
2022-01-06 08:37:03 -08:00
2018-10-18 09:36:35 -07:00
2022-02-04 07:43:18 -07:00
2022-02-22 21:11:08 -05:00
2020-05-13 12:02:23 -07:00
2022-03-24 19:37:53 -07:00
2018-05-30 15:33:32 -06:00
2022-03-21 17:16:01 -07:00
2022-02-22 21:11:08 -05:00
2022-02-22 21:11:08 -05:00
2019-09-13 13:10:05 -07:00
2022-03-08 15:16:54 -08:00
2022-03-26 11:51:46 -07:00
2022-03-08 15:16:54 -08:00
2022-03-08 22:55:09 -08:00
2019-03-12 10:15:18 -07:00
2022-03-26 11:51:46 -07:00
2022-03-26 11:51:46 -07:00
2022-01-06 08:37:02 -08:00
2022-03-24 19:37:53 -07:00
2022-03-08 15:16:54 -08:00