aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2025-09-03 01:41:40 +0000
committerYu Kuai <[email protected]>2025-09-04 16:30:04 +0000
commit93dec51e716db88f32d770dc9ab268964fff320b (patch)
tree3f896359a6d92ad2c194115ab37a1a7c0f5cb808 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentbcache: change maintainer's email address (diff)
downloadkernel-93dec51e716db88f32d770dc9ab268964fff320b.tar.gz
kernel-93dec51e716db88f32d770dc9ab268964fff320b.zip
md/raid1: fix data lost for writemostly rdev
If writemostly is enabled, alloc_behind_master_bio() will allocate a new bio for rdev, with bi_opf set to 0. Later, raid1_write_request() will clone from this bio, hence bi_opf is still 0 for the cloned bio. Submit this cloned bio will end up to be read, causing write data lost. Fix this problem by inheriting bi_opf from original bio for behind_mast_bio. Fixes: e879a0d9cb08 ("md/raid1,raid10: don't ignore IO flags") Reported-and-tested-by: Ian Dall <[email protected]> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220507 Link: https://lore.kernel.org/linux-raid/[email protected] Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Li Nan <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions