Received: by 10.223.185.116 with SMTP id b49csp5307238wrg; Wed, 7 Mar 2018 09:33:11 -0800 (PST) X-Google-Smtp-Source: AG47ELv7lWUqNs2mdcK9Ck+95qKKhuaSdFjMk05Z651X4jBjeSzceoY40rolc4+vES4qC14xn+C7 X-Received: by 10.98.162.26 with SMTP id m26mr23391596pff.217.1520443991273; Wed, 07 Mar 2018 09:33:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520443991; cv=none; d=google.com; s=arc-20160816; b=tyk8JpFy42ktlMN83dolthYKIykb6BpPnduz1+JzUcTGaclAbjVQVlD/Qi9JFY2+SH 836/MYaIH5HGNkzoHOFKfGPf+kDG9xOv43vP6WgfjRAvzUKRHeY/V9zaT0Y7+W7osru2 JNFq8Qes43/vkvLBxxEhhYnH9RiPThOcJkNd4IK9mHfu1dbDpbvpVBhIYjDdS8VLs530 kl2oscO1MHqmXfgQT56ln4dAgvYaI+bUngNJbFhA/UI3RdJpGhvVvJYOAtcyiWPLbTFZ 7bguJpbFnXox1eFkm5XI63iwUZPvz9ScHrSCgqvkBgWx+q/PoSZv3IcJ1btcCEJ2Ic3w T1ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=RFUQDVvf2dWa1y08BJMclR0pVBoseVK4w5g3cFe26jE=; b=Cv85ec7ryfvtxyqVIgsL+vziKjZ0Gkpu5vdx8U++VeKhFZcYm4wTHG0YzGIlljI7uN u5yJ9stftjgtE2AYTGE4eYFinm/4KCqL78nNUsOasH6HOq09Gh6v9pMtqdpGLFBsP9OE 5fDwK9TMw37k/3CFht1th3jj/hB/ZXPUXs/wgupAeHlk1/pvNH3tIfvZarkp3jr/5L99 vFYsZCy26jbOIBgQt5BlxueABjfcv64ZuTNrst1CaG45JWEAkhkz8lL3NZ/Kz1RAXqiy HUW6VFfsXj/RyfndJKX8/CCLabfWtfIaHoI7YDnyM1ZfYRdikKpJ11HFSpByvxU5QXnz l/Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=PGPZVTMz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si14251519pfa.413.2018.03.07.09.32.56; Wed, 07 Mar 2018 09:33:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=PGPZVTMz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933717AbeCGRbZ (ORCPT + 99 others); Wed, 7 Mar 2018 12:31:25 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:36752 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933533AbeCGRbO (ORCPT ); Wed, 7 Mar 2018 12:31:14 -0500 Received: by mail-wm0-f48.google.com with SMTP id 188so6224505wme.1 for ; Wed, 07 Mar 2018 09:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RFUQDVvf2dWa1y08BJMclR0pVBoseVK4w5g3cFe26jE=; b=PGPZVTMzv/7hxh5zTxDAAOjoPC4dvH3yaT9q6RfjW/5Lj8yTICg5iBI8ocQ3kUKJaM 36Uu7gyhT2I6dY064TIbiIaihhKmX3VFfH1xg9w+S2NJqBfMujYWOxroRXzcZNYixf7O j0YA2reaefF1Zub7o1hPxzCHeFkfodHZ9KTISKn3TBt4baWx3zJ8GzQlD/atHBMDywQr nT/Ja+Plt1jvMm8sBHaDKHSMw2ipM4f2RyJzzSHLvZwwhx6qGWtPI1EgH4qBhEPtZr9J bNj5rc0qMSVqmZqTCfi8p7e8jwNPHq3IkiZMDTGk5nBI0+0JyMTiAAKFpUKafe3NXIzs +hCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RFUQDVvf2dWa1y08BJMclR0pVBoseVK4w5g3cFe26jE=; b=PlHZ6Dooj3ChmpP7wmxCUUCXBqrTKSaUssg1aK9R8PV6ve/qyoDwpFnzDpVwQ5Kh8U 1sZf/FfuZBiN+49ikkyPwqUvfA2+s5vPS1TzCa1fn9gJaX7Ey+MvATPnsTFvESXszBFX 3qkx03+yKFjlkkQAg/5ywSSy3aJsYXe+1V0qlfbUloRd+plp8jmouYNJ4amGJphoSxWo U1ncfL0XISftbwBAfW2LprNB1ea53z2wGY2SbluDo651H7HWBLu3fgwtRzr1VPj2+8Ev 4ArgHLyR7NN4hulYAd5z4Jre88wgYNVJiU46NNnHcOXKv/mPrppefDEUfPyRTm9Dj84A iw6g== X-Gm-Message-State: AElRT7FZ8EUImoeiZaDCvFPyL5a0SlHPSVm7y2ZjerVcY2iwfcr1Z/L6 BX7hpeAGE+SkSu+P9qlIq0sc6Q== X-Received: by 10.28.15.4 with SMTP id 4mr16046871wmp.33.1520443873002; Wed, 07 Mar 2018 09:31:13 -0800 (PST) Received: from [192.168.0.153] ([95.146.144.186]) by smtp.googlemail.com with ESMTPSA id a72sm12126011wme.28.2018.03.07.09.31.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 09:31:12 -0800 (PST) Subject: Re: [PATCH 2/6] lib/scatterlist: Skip requesting zeroed allocations in sgl_alloc_order To: Andy Shevchenko Cc: Linux Kernel Mailing List , Tvrtko Ursulin , Bart Van Assche , Hannes Reinecke , Johannes Thumshirn , Jens Axboe References: <20180307124712.14963-1-tvrtko.ursulin@linux.intel.com> <20180307124712.14963-3-tvrtko.ursulin@linux.intel.com> From: Tvrtko Ursulin Message-ID: <90d6f5e3-7480-46a9-8803-12ffe7db4343@ursulin.net> Date: Wed, 7 Mar 2018 17:31:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/18 15:35, Andy Shevchenko wrote: > On Wed, Mar 7, 2018 at 2:47 PM, Tvrtko Ursulin wrote: > >> + sgl = kmalloc_array(nent, sizeof(struct scatterlist), (gfp & ~GFP_DMA)); > > The parens now become redundant. True thanks! I am also not sure that re-using the same gfp_t for metadata is backing store is the right approach. At least I think __GFP_HIGHMEM needs also to be cleared for kmalloc. Regards, Tvrtko