lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211215194952.GY6385@nvidia.com>
Date:   Wed, 15 Dec 2021 15:49:52 -0400
From:   Jason Gunthorpe <jgg@...dia.com>
To:     Uladzislau Rezki <urezki@...il.com>
Cc:     linux-rdma@...r.kernel.org,
        Mike Marciniszyn <mike.marciniszyn@...nelisnetworks.com>,
        LKML <linux-kernel@...r.kernel.org>, RCU <rcu@...r.kernel.org>,
        "Paul E . McKenney" <paulmck@...nel.org>,
        Michal Hocko <mhocko@...e.com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Daniel Axtens <dja@...ens.net>,
        Frederic Weisbecker <frederic@...nel.org>,
        Neeraj Upadhyay <neeraju@...eaurora.org>,
        Joel Fernandes <joel@...lfernandes.org>,
        Peter Zijlstra <peterz@...radead.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        "Theodore Y . Ts'o" <tytso@....edu>,
        Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
        Oleksiy Avramchenko <oleksiy.avramchenko@...ymobile.com>
Subject: Re: [PATCH] RDMA/hfi1: Switch to kvfree_rcu() API

On Wed, Dec 15, 2021 at 08:47:38PM +0100, Uladzislau Rezki wrote:
> On Wed, Dec 15, 2021 at 12:18:44PM +0100, Uladzislau Rezki (Sony) wrote:
> > Instead of invoking a synchronize_rcu() to free a pointer
> > after a grace period we can directly make use of new API
> > that does the same but in more efficient way.
> > 
> > TO: linux-rdma@...r.kernel.org
> > TO: Jason Gunthorpe <jgg@...dia.com>
> > TO: Mike Marciniszyn <mike.marciniszyn@...nelisnetworks.com>
> > Acked-by: Mike Marciniszyn <mike.marciniszyn@...nelisnetworks.com>
> > Signed-off-by: Uladzislau Rezki (Sony) <urezki@...il.com>
> >  drivers/infiniband/hw/hfi1/sdma.c | 3 +--
> >  1 file changed, 1 insertion(+), 2 deletions(-)
> > 
> > diff --git a/drivers/infiniband/hw/hfi1/sdma.c b/drivers/infiniband/hw/hfi1/sdma.c
> > index f07d328689d3..7264a35e8f4c 100644
> > +++ b/drivers/infiniband/hw/hfi1/sdma.c
> > @@ -1292,8 +1292,7 @@ void sdma_clean(struct hfi1_devdata *dd, size_t num_engines)
> >  	sdma_map_free(rcu_access_pointer(dd->sdma_map));
> >  	RCU_INIT_POINTER(dd->sdma_map, NULL);
> >  	spin_unlock_irq(&dd->sde_map_lock);
> > -	synchronize_rcu();
> > -	kfree(dd->per_sdma);
> > +	kvfree_rcu(dd->per_sdma);
> >  	dd->per_sdma = NULL;
> >  
> >  	if (dd->sdma_rht) {
> + linux-rdma@...r.kernel.org
> + Jason Gunthorpe <jgg@...dia.com>
> + Mike Marciniszyn <mike.marciniszyn@...nelisnetworks.com>

If it is not in the rdma patchworks it won't get applied..

https://patchwork.kernel.org/project/linux-rdma/list/

Jason
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ