Re: [PATCH 6/8] md: switch from list to rb tree for IO serialization

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

 



On Wed, Nov 6, 2019 at 2:43 AM Guoqing Jiang
<guoqing.jiang@xxxxxxxxxxxxxxx> wrote:
>
>
>
> On 11/5/19 11:03 PM, Song Liu wrote:
> > On Fri, Nov 1, 2019 at 7:23 AM <jgq516@xxxxxxxxx> wrote:
> >> From: Guoqing Jiang <guoqing.jiang@xxxxxxxxxxxxxxx>
> >>
> >> Obviously, IO serialization could cause the degradation of
> >> performance. In order to reduce the degradation, it is better
> >> to replace link list with rb tree.
> >>
> >> And with the inspiration of drbd_interval.c, a simpler
> > Can we reuse the logic in drdb_interval.c instead of duplicating it?
> >
>
> Yes, I thought about it, but we need to move the logic from drbd to
> a common place before we can reuse it. And seems pat_rbtree.c
> has the similar implementation, so we can reduce a lot duplication.
>
> But it definitely needs more efforts to put the logic to a common place
> since it involves different subsystems,  which means we have to wait it
> for a longer time. Or we just add the logic here, then try to refactor the
> common code later.

I would prefer we at least try the move. If we got push back from drbd
maintainers, we can go back to current approach.

This set is not likely to make the upcoming merge window. So we should
have time to do some clean up.

Thanks,
Song



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux