aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>2022-04-15 17:45:13 +0900
committerMike Snitzer <snitzer@kernel.org>2022-04-15 16:16:09 -0400
commit92b914e29af3e99589f2d2876616c0b534892ed4 (patch)
tree88be1698935aecf7d069367065459eb5e6514c6f /tools/perf/scripts
parentdm: allow dm_accept_partial_bio() for dm_io without duplicate bios (diff)
downloadlinux-92b914e29af3e99589f2d2876616c0b534892ed4.tar.gz
linux-92b914e29af3e99589f2d2876616c0b534892ed4.zip
dm: fix bio length of empty flush
The commit 92986f6b4c8a ("dm: use bio_clone_fast in alloc_io/alloc_tio") removed bio_clone_fast() call from alloc_tio() when ci->io->tio is available. In this case, ci->bio is not copied to ci->io->tio.clone. This is fine since init_clone_info() sets same values to ci->bio and ci->io->tio.clone. However, when incoming bios have REQ_PREFLUSH flag, __send_empty_flush() prepares a zero length bio on stack and set it to ci->bio. At this time, ci->io->tio.clone still keeps non-zero length. When alloc_tio() chooses this ci->io->tio.clone as the bio to map, it is passed to targets as non-empty flush bio. It causes bio length check failure in dm-zoned and unexpected operation such as dm_accept_partial_bio() call. To avoid the non-empty flush bio, set zero length to ci->io->tio.clone in __send_empty_flush(). Fixes: 92986f6b4c8a ("dm: use bio_clone_fast in alloc_io/alloc_tio") Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
an title='2021-08-26 13:59:31 +0100'>2021-08-26ASoC: rockchip: i2s: Fixup clk div errorSugar Zhang1-2/+2 2021-08-26ASoC: rockchip: i2s: Add support for set bclk ratioSugar Zhang1-1/+15 2021-08-26ASoC: dt-bindings: rockchip: Add compatible for rk3568 spdifSugar Zhang1-0/+1 2021-08-26ASoC: rockchip: spdif: Add support for rk3568 spdifSugar Zhang1-0/+2 2021-08-26ASoC: rockchip: spdif: Fix some coding styleSugar Zhang1-17/+17 2021-08-26ASoC: rockchip: spdif: Mark SPDIF_SMPDR as volatileSugar Zhang1-0/+2 2021-08-26ASoC: mediatek: mt8195: Fix spelling mistake "bitwiedh" -> "bitwidth"Colin Ian King1-1/+1 2021-08-26ASoC: dwc: Get IRQ optionallyRobin Murphy1-1/+1 2021-08-25ASoC: imx-rpmsg: change dev_err to dev_err_probe for -EPROBE_DEFERShengjiu Wang1-1/+1 2021-08-25ASoC: rt5682: Fix the vol+ button detection issueDerek Fang1-6/+8 2021-08-25ASoC: Intel: bytcr_rt5640: Make rt5640_jack_gpio/rt5640_jack2_gpio staticPeter Ujfalusi1-2/+2 2021-08-24ASoC: SOF: intel: remove duplicate includeChangcheng Deng1-1/+0