Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp573177pxk; Wed, 2 Sep 2020 09:05:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJiPPIXFu+5mBDXLkIbu2WEEbSyjBxTzsLGQ9aE/Tz99TEv+dLZTdKWlkoTJ8eHPku2MJR X-Received: by 2002:a17:906:a446:: with SMTP id cb6mr722261ejb.15.1599062742841; Wed, 02 Sep 2020 09:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599062742; cv=none; d=google.com; s=arc-20160816; b=weVV/u30/RMm3WErt3TREwaeo0cghb9h+0gd//CjcZGT/xE+vdbOpsJ8/Y2SS7aPRQ yNe4pujKthdWZrgiHrC2Bcugj4H/oWu0opzTz2RUNv6OlYcd0u9Klql7FGqHJzvsmKvC wNIdsG1RAuLsEiUcRcIKT6sLMHrmIvmcpG+q9x7SDlHZxmAGqcNYDnlY6aXwznQm1iDD 8Fjp6GVCWO2falbLdbS9lENxCwaXZm5dJhgqS9xWAnZDbyB/YnFQvEq+Fwffg8RQnwaE srdbzWE5d6/V3zdxIEog42WjOp77iSmogsPQC9FcvlCYnJYbU1gBx6KQrsCeZRvv9E2b ydGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=X0Rt7IIHXTzck/+bd2htT31QzTnaNifFk7gmI1vahEg=; b=TrrPcvOhSdgH2wYG1kbNGlJgOmJ5Ifjkq603fkel1cXD+f1VWN0hPRP2mJc3UlrSYe oIS0CFL+31/rxRuIv6cZLDiK3caI5ljWErIdqn83gZ6C7Z80GfOqAZpxiUdOtzlXRcUU lUEraEzSXrsPlIES5mxWCQfO2AGVye92Gf9e2a8O06n0giFhUa/F8ew1Up8fupmTNNgI CojrlZJvJ1z1s9MR2Z//NaWIXHmCm3H+c8N9cOUBwYagtV9CgBIejMqyPdOum3R9CiOV L9ZbIrmny7WVC66mYfq7ww9rhFCX/y0MdrMFTA7783nkeywv5TkeweKT/AuPTHRKo7nV zaGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GuRjtYID; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v26si2919827eja.287.2020.09.02.09.05.18; Wed, 02 Sep 2020 09:05:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GuRjtYID; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727825AbgIBQDm (ORCPT + 99 others); Wed, 2 Sep 2020 12:03:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgIBQDl (ORCPT ); Wed, 2 Sep 2020 12:03:41 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D13ADC061244; Wed, 2 Sep 2020 09:03:40 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id z4so5821486wrr.4; Wed, 02 Sep 2020 09:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=X0Rt7IIHXTzck/+bd2htT31QzTnaNifFk7gmI1vahEg=; b=GuRjtYIDNnozpuBXnQHDNYjl7QF+jagnYiGA54NPU5IH44jdy6VNhSXpzEEqYVRazk M2M7klztiK0Zw/CsHgGYs+HjAl+ptK/gcAMiPQcRlbZOUe/gd3Sskui/Vt88olTY08Hb cllZZs0IYSqpkCiEKezTXbpez4g0q2IB9PUYdIPIWZ2ZX5iz3SAA5ux5ShVtn1Rgkuf/ 82mDl8UxrmRYRiW7T1NcBJjQDqIgb3Y1tYCAZbGG+5r7NQQc6gC7EDMAK7hXp8P741CF nyT9CG9LMsBHBMOHG6WmGTOnA2cddZwKZV6Piu47gbM+rHbI27JZIkYy2HO5gST7GXIt cuCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=X0Rt7IIHXTzck/+bd2htT31QzTnaNifFk7gmI1vahEg=; b=oJlCKtIhd8TckHr6scFjVFWCEkcaqYpWekW0/GcwTGadnfwl1BEQ6d8CjnZANeAly/ EjrqmlUHFZ874dRpQJP2S5Ubhl44/Kr3HK6FL/2v+tt2cKfRJcUOu6CeIiTVc71eOudX l1/nTUMdMalu7ovB6b8K+sk+8fZ/Yw8nu6rhzdZs+d7RWdq5F7Y01oYH4/4had1hfQqc 2drL9mHpUK/AIUwJ/tR0jWQHyJVbgTAQXFUCDJik8s2jBvHTKsN6S/yHD470v8eYdhBu qPlmSOne0zr1g4XHjgYckxQ6HxhL2eSBc10m6Ho6B2ZU2qg7IYf8dA1OTaIx74gdiXIY jkWg== X-Gm-Message-State: AOAM533IvGFvhqDzmxmSNcOv+Seb3N8nAe1UqvWjkSn5nbSskBz6XoTe rTLLdr1/L/fG1f3UZD7eroc= X-Received: by 2002:adf:ef48:: with SMTP id c8mr7933606wrp.370.1599062619556; Wed, 02 Sep 2020 09:03:39 -0700 (PDT) Received: from medion (cpc83661-brig20-2-0-cust443.3-3.cable.virginm.net. [82.28.105.188]) by smtp.gmail.com with ESMTPSA id m185sm217035wmf.5.2020.09.02.09.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Sep 2020 09:03:38 -0700 (PDT) From: Alex Dewar X-Google-Original-From: Alex Dewar Date: Wed, 2 Sep 2020 17:03:37 +0100 To: "Martin K. Petersen" Cc: Alex Dewar , GR-QLogic-Storage-Upstream@marvell.com, jejb@linux.ibm.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, njavali@marvell.com Subject: Re: [PATCH v2] scsi: Don't call memset after dma_alloc_coherent() Message-ID: <20200902160337.kvuujxodeokrbn4d@medion> References: <20200820185149.932178-1-alex.dewar90@gmail.com> <20200820234952.317313-1-alex.dewar90@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 01, 2020 at 09:22:44PM -0400, Martin K. Petersen wrote: > > Alex, > > > dma_alloc_coherent() already zeroes memory, so the extra call to > > memset() is unnecessary. > > One patch per driver, please. Nvm, someone's already beaten me to the punch! > > Thanks! > > -- > Martin K. Petersen Oracle Linux Engineering