Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9057789imu; Tue, 4 Dec 2018 20:34:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/XoslTviVckA2jW+uIKUaWLEfGX/QoZKz04YIvfZLu+J/HVrkXbLepPP/K/0jybn0zDDe4Y X-Received: by 2002:a17:902:d83:: with SMTP id 3mr1335973plv.43.1543984463392; Tue, 04 Dec 2018 20:34:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543984463; cv=none; d=google.com; s=arc-20160816; b=J9WO3nKfp4iT3Z16iszFoNKvn9+Z66O+JysMtm5V9QgvxzG2XIg3c4KxfVqjIjtUrT UQjusVgbGKrpGU77oKzMSo9PScgv26mgFJtyZqPj62KzaO9+cURRxUOvPaFYMiqz0vz3 inULiMYe8VYxle2I2MvMgHd7n3lMpKwd7sV65LGznBFc6CsWGKpZjDzy9DiHDN+Yf6Gs OnecQN8aL+BIOO59j05g7G0C2yD/CZVnNGRvxJwoF9+wMcu4uWsYv5aJTn9oOkMDt3Dk SrhLZLPhPRrvp02Ibm7J5xQBtN05wsj0F+H42cPd/BC+JpOOWAyW+if2NnaMI3FkxJV7 uSfg== 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=KcEIdsGut+2QxS4CWuCOChjjEYez+8JgtabCvWcaNpE=; b=h9/EwV6U32ANQje7GRjomRDmDAUYr5TufNF9zWcCuvbylt767u/w5Kfv0Vs+UrBwJl UvkVfoACwWARUbkYwVD31w/m937NcDqXZMIXnvoQ5VD0snD4dPPVCAAODyV4jTIrgdEO 3gRFFRvf0oO7bWl5K2BTgSu8RzFh2uVu/rRBb4AkYYkWR27M4oG6rq1ErnO/4nCYh4V+ SLmLv9CKeVlaZZHTQzH9oWmpkHs3QDCyh70vSaEq+5Wwyfn5TwC+NvXQrXA/OWLSpgrP 1F0F2YsD8T9AdbkVQgHJJINgIyDEMcXrwfl1pikkbaMzewgWRQk4vGPDR7H7wXzL2S8q l/iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="u/oH4TnC"; 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 b11si13475596pla.405.2018.12.04.20.34.07; Tue, 04 Dec 2018 20:34:23 -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="u/oH4TnC"; 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 S1726102AbeLEEdc (ORCPT + 99 others); Tue, 4 Dec 2018 23:33:32 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34251 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbeLEEdc (ORCPT ); Tue, 4 Dec 2018 23:33:32 -0500 Received: by mail-pg1-f194.google.com with SMTP id 17so8424374pgg.1; Tue, 04 Dec 2018 20:33:31 -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=KcEIdsGut+2QxS4CWuCOChjjEYez+8JgtabCvWcaNpE=; b=u/oH4TnCEfC9kMwRua74K3fVFJ7cOm61chldxVnrQsLWA8yNj67yoMBDRvn6JcmFiF I0ilrf7/BwQe77vqMyo6CKCdG8PjgPFbkvkcHk916kjDy16FU5bi5dF5kaxzjH/iw3hs WTlCgHa9sBvuRLTx7Zv967F7jqTqEbbeyfT8NU5FJvtkvBlm4eQkdZAqfYLSNtpKScxh P8/yQG2dOeiFopGPB3cqZZ5OSxiHZJ3Viy39F1+6UXMAOFAHm45UT0iIHxotOgzIILPk /EM22yebr2JFAyFvQpTAO3ga+SsF/Z3tf7i47nticZaQgdEeTFzdFHKQFPlOuJJ73Son XXng== 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=KcEIdsGut+2QxS4CWuCOChjjEYez+8JgtabCvWcaNpE=; b=NwRdrRHvCuA9W9IF3Gnp42myVOveZztIzQShMGxnIhOHKCleTl2AXBUFeU5W9DJX6h nRk6c8TOBKBTIGI3N3YYTIuW4kLJR3IwE3uY6aLKWOhho9QNHBto2VgnZs9Jm0yVzK2o jnuWVeZlug5zici3NBNi3aODV7Q+DqSWZ+P3yiCRuEAh3sFxeswAzQE9N4ZCgvNd+3dj USpOOs/BpEDjBgBgrPmDZSP/szV8d1sl/yHp6tigiTM/qnexiYh83G4GwZaZdh+RYxTM a9JC1busT8FEGdk8AlzEmyTlTarrL1APTy5xRlJ97I3X12AfNBpaizmaeZBVg3Y1Laah EEEA== X-Gm-Message-State: AA+aEWZdA1iTsMUoyfXwpa+zGywcI8ZOwrjDpzHanWdFZ7eioIA048T4 d1cG1MaDQfydU1ipGy14wkP7KKACr2NSc8u9dBY= X-Received: by 2002:a63:7154:: with SMTP id b20mr19145145pgn.342.1543984410614; Tue, 04 Dec 2018 20:33:30 -0800 (PST) MIME-Version: 1.0 References: <5beda000.1c69fb81.e6599.d3d8@mx.google.com> In-Reply-To: From: Sabyasachi Gupta Date: Wed, 5 Dec 2018 10:03:19 +0530 Message-ID: Subject: Re: [PATCH] drivers/scsi/snic/snic_trc.c: Use vzalloc To: kartilak@cisco.com, sebaddel@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:07 PM Sabyasachi Gupta wrote: > > On Thu, Nov 15, 2018 at 10:04 PM Sabyasachi Gupta > wrote: > > > > Replaced vmalloc + memset with vzalloc > > > > Signed-off-by: Sabyasachi Gupta > > Any comment on this patch? Any comment on this patch? > > > --- > > drivers/scsi/snic/snic_trc.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/scsi/snic/snic_trc.c b/drivers/scsi/snic/snic_trc.c > > index fc60c93..458eaba 100644 > > --- a/drivers/scsi/snic/snic_trc.c > > +++ b/drivers/scsi/snic/snic_trc.c > > @@ -126,7 +126,7 @@ snic_trc_init(void) > > int tbuf_sz = 0, ret; > > > > tbuf_sz = (snic_trace_max_pages * PAGE_SIZE); > > - tbuf = vmalloc(tbuf_sz); > > + tbuf = vzalloc(tbuf_sz); > > if (!tbuf) { > > SNIC_ERR("Failed to Allocate Trace Buffer Size. %d\n", tbuf_sz); > > SNIC_ERR("Trace Facility not enabled.\n"); > > @@ -135,7 +135,6 @@ snic_trc_init(void) > > return ret; > > } > > > > - memset(tbuf, 0, tbuf_sz); > > trc->buf = (struct snic_trc_data *) tbuf; > > spin_lock_init(&trc->lock); > > > > -- > > 2.7.4 > >