From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov Subject: Re: [PATCH net] bpf: add schedule points to map alloc/free Date: Tue, 12 Dec 2017 15:33:13 -0800 Message-ID: <20171212233311.j2ltph3jmeuc6use@ast-mbp> References: <1513117359.25033.56.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexei Starovoitov , Daniel Borkmann , netdev To: Eric Dumazet Return-path: Received: from mail-pg0-f54.google.com ([74.125.83.54]:35566 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752710AbdLLXdQ (ORCPT ); Tue, 12 Dec 2017 18:33:16 -0500 Received: by mail-pg0-f54.google.com with SMTP id q20so422222pgv.2 for ; Tue, 12 Dec 2017 15:33:16 -0800 (PST) Content-Disposition: inline In-Reply-To: <1513117359.25033.56.camel@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Dec 12, 2017 at 02:22:39PM -0800, Eric Dumazet wrote: > From: Eric Dumazet > > While using large percpu maps, htab_map_alloc() can hold > cpu for hundreds of ms. > > This patch adds cond_resched() calls to percpu alloc/free > call sites, all running in process context. > > Signed-off-by: Eric Dumazet Applied, thanks Eric!