diff options
| author | Coly Li <[email protected]> | 2022-04-19 16:04:24 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-04-19 17:28:17 +0000 |
| commit | ff2695e52c9936febf65aa36a1769881da71bec5 (patch) | |
| tree | b0e470136e65d89576b4a2ff64db8902104d263b /tools/perf/scripts/python | |
| parent | Merge tag 'nvme-5.18-2022-04-15' of git://git.infradead.org/nvme into block-5.18 (diff) | |
| download | kernel-ff2695e52c9936febf65aa36a1769881da71bec5.tar.gz kernel-ff2695e52c9936febf65aa36a1769881da71bec5.zip | |
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 <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Chaitanya Kulkarni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
