Re: [PATCH 1/4] RDMA/rtrs-clt: Add a minimum latency multipath policy

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

 



On Wed, Apr 7, 2021 at 11:23 AM Jinpu Wang <jinpu.wang@xxxxxxxxx> wrote:
>
> On Tue, Apr 6, 2021 at 2:06 PM Gioh Kim <gi-oh.kim@xxxxxxxxx> wrote:
> >
> > From: Gioh Kim <gi-oh.kim@xxxxxxxxxxxxxxx>
> >
> > This patch adds new multipath policy: min-latency.
> > Client checks the latency of each path when it sends the heart-beat.
> > And it sends IO to the path with the minimum latency.
> >
> > Signed-off-by: Gioh Kim <gi-oh.kim@xxxxxxxxx>
> > Signed-off-by: Jack Wang <jinpu.wang@xxxxxxxxx>
> > ---
> >  drivers/infiniband/ulp/rtrs/rtrs-clt-sysfs.c | 18 +++++--
> >  drivers/infiniband/ulp/rtrs/rtrs-clt.c       | 57 +++++++++++++++++++-
> >  drivers/infiniband/ulp/rtrs/rtrs-clt.h       |  1 +
> >  drivers/infiniband/ulp/rtrs/rtrs-pri.h       |  2 +
> >  drivers/infiniband/ulp/rtrs/rtrs.c           |  3 ++
> >  5 files changed, 77 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/infiniband/ulp/rtrs/rtrs-clt-sysfs.c b/drivers/infiniband/ulp/rtrs/rtrs-clt-sysfs.c
> > index c502dcbae9bb..bc46b7a99ba0 100644
> > --- a/drivers/infiniband/ulp/rtrs/rtrs-clt-sysfs.c
> > +++ b/drivers/infiniband/ulp/rtrs/rtrs-clt-sysfs.c
> > @@ -101,6 +101,8 @@ static ssize_t mpath_policy_show(struct device *dev,
> >         case MP_POLICY_MIN_INFLIGHT:
> >                 return sysfs_emit(page, "min-inflight (MI: %d)\n",
> >                                   clt->mp_policy);
> > +       case MP_POLICY_MIN_LATENCY:
> > +               return sprintf(page, "min-latency (ML: %d)\n", clt->mp_policy);
> sysfs_emit should be used here, Gioh please fix it.
>
> Thanks

Sure, I will fix and send v2.



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux