From owner-svn-src-head@freebsd.org Wed Mar 8 16:07:40 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E932D03F0D; Wed, 8 Mar 2017 16:07:40 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48890D70; Wed, 8 Mar 2017 16:07:39 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id v28G7adl001323; Wed, 8 Mar 2017 08:07:36 -0800 (PST) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id v28G7a6E001322; Wed, 8 Mar 2017 08:07:36 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201703081607.v28G7a6E001322@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r314905 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src conf modules/linuxkpi In-Reply-To: <201703081109.v28B9RCD000618@repo.freebsd.org> To: Hans Petter Selasky Date: Wed, 8 Mar 2017 08:07:36 -0800 (PST) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2017 16:07:40 -0000 [ Charset UTF-8 unsupported, converting... ] > Author: hselasky > Date: Wed Mar 8 11:09:27 2017 > New Revision: 314905 > URL: https://svnweb.freebsd.org/changeset/base/314905 > > Log: > Cleanup the LinuxKPI slab implementation. > > Put large functions into linux_slab.c instead of declaring them static > inline. > > Add support for more memory allocation wrappers like kmalloc_array() > and __vmalloc(). > > Make sure either the M_WAITOK or the M_NOWAIT flag is set and mask > away unused memory allocation flags before calling FreeBSD's malloc() > routine. > > Move kmalloc_node() definition to slab.h where it belongs. > > Implement support for the SLAB_DESTROY_BY_RCU feature when creating a > kmem_cache which basically means kmem_cache memory is freed using > call_rcu(). > > MFC after: 1 week > Sponsored by: Mellanox Technologies > > Added: > head/sys/compat/linuxkpi/common/src/linux_slab.c (contents, props changed) > Modified: > head/sys/compat/linuxkpi/common/include/linux/gfp.h > head/sys/compat/linuxkpi/common/include/linux/slab.h > head/sys/conf/files > head/sys/modules/linuxkpi/Makefile > > Modified: head/sys/compat/linuxkpi/common/include/linux/gfp.h > ============================================================================== > --- head/sys/compat/linuxkpi/common/include/linux/gfp.h Wed Mar 8 09:53:20 2017 (r314904) > +++ head/sys/compat/linuxkpi/common/include/linux/gfp.h Wed Mar 8 11:09:27 2017 (r314905) > @@ -168,8 +168,6 @@ gfpflags_allow_blocking(const gfp_t gfp_ > return ((gfp_flags & (M_WAITOK | M_NOWAIT)) == M_WAITOK); > } > > -#define kmalloc_node(chunk, mask, node) kmalloc(chunk, mask) > - > #define SetPageReserved(page) do { } while (0) /* NOP */ > #define ClearPageReserved(page) do { } while (0) /* NOP */ > > > Modified: head/sys/compat/linuxkpi/common/include/linux/slab.h > ============================================================================== > --- head/sys/compat/linuxkpi/common/include/linux/slab.h Wed Mar 8 09:53:20 2017 (r314904) > +++ head/sys/compat/linuxkpi/common/include/linux/slab.h Wed Mar 8 11:09:27 2017 (r314905) > @@ -2,7 +2,7 @@ > * Copyright (c) 2010 Isilon Systems, Inc. > * Copyright (c) 2010 iX Systems, Inc. > * Copyright (c) 2010 Panasas, Inc. > - * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. > + * Copyright (c) 2013-2017 Mellanox Technologies, Ltd. Though widly seen, often miss understood, this modification technically under the copyright law can be used to assert that you have claimed copyright on the 2014 work more than one year after original poublication, hence the work done in 2014 now falls under different parts of the US copyright law. A prefered form of the above dates would be 2013-2014, 2017. Do not assert copyrights for years in which no new material was published. Publishes is defferent than written. Do not interpret these dates as the dates written. Effect of this type of error: According to the U.S. Copyright Act, if the year date [in the copyright notice] is more than one year later than the year in which publication first occurred, the work is considered to have been published without any notice. -- Rod Grimes rgrimes@freebsd.org