Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9060468imu; Tue, 4 Dec 2018 20:39:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xm3G3tsEEW30nluBbFMk5hYeBRQI3LqFkKDfQR09CV8VO5JZW9bMF7bX8I6WqIQmK1rE9t X-Received: by 2002:a63:111c:: with SMTP id g28mr19084319pgl.85.1543984744619; Tue, 04 Dec 2018 20:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543984744; cv=none; d=google.com; s=arc-20160816; b=W4q4ljyHCDcy6/sIwtvUmZ/HOAMnEPZpv4Usbxom3GFLCZgmMbgNwrkvXuE243Nkr6 R+Ruo7Nq7Evnthxecch+fpbhI80H2iC76Fj43e+pcFZXEBhOqqK83rA1SefTAn+2mv7Y uHzxSJO8mLFj24fKBAz0XrSMKuxtpBpbuCSaehQFc440P4XpoATnhQMnwcTJoVx6wvSy 6sqXNNs5IzcOtOOIan2Bgx/As3hZhMKaP0V042bpNVCb1SyT+ELoT1BcP8+wHZm+nmXI AVuhrNwj2UeyUCmNQQLnP9my7RRSoNPz8p0BTV0sjiVXyIQ+SNSx3pb+8UzcxiQGS+PU PoQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=le6ae74zufL4m2Y6XwHzvjNGgrkfyQ/r81b+srxBU+Y=; b=r6fXxs181C8fmIS8iMifqpqwEHwm1bcm3YoVcR0E9T4f6+n4HIgySI9t/FDLswkrmS 8BNIJUPHhFfNIGZ95+PszgTifVFv3w3xnVnZZaV2+KKgB5g87JD4HPIB8rwx5Ybr63AD oQNeMC01vuWOuC2pYNVLmc/FZn8itw+KmtwVK0yI8b6oRiCOqUXLuFTUk8pxR0hne3fy 1WJYmMNQBr7VBifHBWDbLkF4sLiUNwpOCzLaTCVkOhPbcNF5wcv+1rgrq3tNoyAInB7e 9UsdryLw1fbDAIa4WPo0j/jo6u38tk7u5KXJ/9Sinhv0Al9IgPUaTPo8FMPmkwPZ/mhh xUNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lXjYdT2F; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o21si15352230pgj.415.2018.12.04.20.38.49; Tue, 04 Dec 2018 20:39:04 -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=@gmail.com header.s=20161025 header.b=lXjYdT2F; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbeLEEiE (ORCPT + 99 others); Tue, 4 Dec 2018 23:38:04 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44322 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725865AbeLEEiE (ORCPT ); Tue, 4 Dec 2018 23:38:04 -0500 Received: by mail-pg1-f193.google.com with SMTP id t13so8394539pgr.11; Tue, 04 Dec 2018 20:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=le6ae74zufL4m2Y6XwHzvjNGgrkfyQ/r81b+srxBU+Y=; b=lXjYdT2F+sIHuaKTsH61XxcVPU55Z4AcqqoeBhdrrwVxD1MzHgA8CKCrcLXFOO4i9v SwX7Ai1L8hT7rZocqog798MtAa/kqZoqyZMXrgxKrYVNcjDRjqw9VMmqH7LhkedypekA 6/PcwLa32ENucRDzL40zTGW+NS9t0tqOhl9xd4DiAmESj9BNbsnlTCIAPFnRV+G9rRUH diKuDh1UTt05tctaoQNwv7vyKgQm/fJ1C675600Z+O3aLTKepCRg0ckSZXllCBZJO4DT yHlPU/JmJxNUqxlNgI4DLtyEGBiFDWWEbRiARZJTjI4LCDHG2jBqOxhr9MDqZXNnDpoS x4wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=le6ae74zufL4m2Y6XwHzvjNGgrkfyQ/r81b+srxBU+Y=; b=ZL7uHBBT4Pabnak9y79Iu8F+4/yXV6HRSQr63tJQpE3SqnGAGow3i+IKbFmvhGBodF /pJR0QZafZGGSZbR2wk9d+oU154SM17FEuZsVEb/D3BXi05gXURdufDAYvZtJhSjN0Ei rZH2F4pEbC2oOqDRf9c3/Mgt42l1tDmaMaX2AllLt3z0Ism3PuJc22/TPcqhruvmUb2K qyj2mhOZGSNL0qoTmUkTf51Su1V6dyDpMgtaz0Ef00AAoHobgEYor5c2Kqg5l1L1z1oC qYmMwU7X0WHv62K09IScKOi7vmTj1A22rYqYru3c/8A9xRzDXM++jdBy8nm+lxPkOLAe sftA== X-Gm-Message-State: AA+aEWY+GP9m3LrDbaYZAlsOYMFI2c4oa3oxQBoVTFZdr+ZhJqwIKCOT RvrDVLBZdKLfwhJ8usQAbqAKCtCAsjbPiDSBv2w= X-Received: by 2002:a63:7154:: with SMTP id b20mr19153212pgn.342.1543984683221; Tue, 04 Dec 2018 20:38:03 -0800 (PST) MIME-Version: 1.0 References: <5bec5342.1c69fb81.b02fa.ace9@mx.google.com> In-Reply-To: From: Sabyasachi Gupta Date: Wed, 5 Dec 2018 10:07:51 +0530 Message-ID: Subject: Re: [PATCH v2] drivers/scsi/fnic/fnic_trace.c: Use vzalloc To: satishkh@cisco.com, sebaddel@cisco.com, kartilak@cisco.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: Souptick Joarder , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Brajeswar Ghosh Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 23, 2018 at 8:13 PM Sabyasachi Gupta wrote: > > On Wed, Nov 14, 2018 at 10:24 PM Sabyasachi Gupta > wrote: > > > > Replaced vmalloc + memset with vzalloc > > > > Signed-off-by: Sabyasachi Gupta > > Any comment on this patch? Any comment on this patch? > > > --- > > v2: Removed additional braces > > > > drivers/scsi/fnic/fnic_trace.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/scsi/fnic/fnic_trace.c b/drivers/scsi/fnic/fnic_trace.c > > index 8271785..bf0fd2a 100644 > > --- a/drivers/scsi/fnic/fnic_trace.c > > +++ b/drivers/scsi/fnic/fnic_trace.c > > @@ -468,14 +468,13 @@ int fnic_trace_buf_init(void) > > fnic_max_trace_entries = (trace_max_pages * PAGE_SIZE)/ > > FNIC_ENTRY_SIZE_BYTES; > > > > - fnic_trace_buf_p = (unsigned long)vmalloc((trace_max_pages * PAGE_SIZE)); > > + fnic_trace_buf_p = (unsigned long)vzalloc(trace_max_pages * PAGE_SIZE); > > if (!fnic_trace_buf_p) { > > printk(KERN_ERR PFX "Failed to allocate memory " > > "for fnic_trace_buf_p\n"); > > err = -ENOMEM; > > goto err_fnic_trace_buf_init; > > } > > - memset((void *)fnic_trace_buf_p, 0, (trace_max_pages * PAGE_SIZE)); > > > > fnic_trace_entries.page_offset = > > vmalloc(array_size(fnic_max_trace_entries, > > -- > > 2.7.4 > >