Re: LVM2 test breakage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, 19 May 2025, Yu Kuai wrote:

> Hi,
> 
> 在 2025/05/17 0:00, Mikulas Patocka 写道:
> > Hi
> > 
> > The commit e879a0d9cb086c8e52ce6c04e5bfa63825a6213c breaks the test
> > shell/lvcreate-large-raid.sh in the lvm2 testsuite.
> > 
> > The breakage is caused by removing the line "read_bio->bi_opf = op |
> > do_sync;"
> > 
> 
> Sorry that I don't undertand here, before the patch:
> 
> op = bio_op(bio);
> do_sync = bio->bi_opf & REQ_SYNC;
> read_bio->bi_opf = op | do_sync
> 
> after the patch:
> 
> read_bio = bio_alloc_clone(, bio, ...)
>  read_bio->bi_opf = bio->bi_opf
> 
> So, after the patch, other than bio_op() and REQ_SYNC, other bio flags
> are keeped, I don't see problem for now, I'll run the test later.
> 
> Thanks,
> Kuai

The problem is caused by the REQ_RAHEAD flag - bios with this flag may 
fail anytime. I presume that the bug is caused by raid1 mishandling this 
failure.

Mikulas

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux