Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9663331ybl; Thu, 26 Dec 2019 03:14:49 -0800 (PST) X-Google-Smtp-Source: APXvYqzsNtlN0/65F4DBGUHQZXJdM2syfaj8QqnAkIJFyFDJlJDwB2XkwDnpagPEjqaFSTrg3eaf X-Received: by 2002:a05:6830:20c6:: with SMTP id z6mr47366507otq.272.1577358889517; Thu, 26 Dec 2019 03:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577358889; cv=none; d=google.com; s=arc-20160816; b=lsBaKlcn0E4L2MFPiPI5fmgfFU/PjRV1yNNqA+4OnbpHkszZMlp0UBJVBs+TbOqMfA /A8DqrP2k+y+/JeZjbHwB3hCtDEZ1lr46xkno6AjOdzKta+mg55anbxfusurgIqUyKzc HaXHZtOfSc+54n/xmaMqfryQ41h+QNkLvzyAbLF+ESAYA5JzsI8woaXZQ2cKPz0IglHs tPyc0+LE2fpm3ouUrJiz4PaBWo86YAq29qQbKcXlvTPP4qQ7w6PWT3XXUgi+QqQLTtjq mmfdwansMsQto1InMHNytokyUU+oZ9SUZhaKH3gkd/BUnf3EAiiO6r7Q/rhP859dIWfS UUMg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=blly/B5Agzzlk4CYfM0wAqmRedIBQk96d6c5e9tSqMg=; b=wMrSVmzZdJ2Rdwwzw7VNsMu2YxBJWC25bYFxUPU/eCq6ngdIlOb2Xb9rTGYxnJkgIA hk1/yHbZP/s3jco6EGCN2e0MFkmii9xPFaLS4m9EE7X3biwZJbLc1AD7aVjDM47beJVs d0FBSUpy5DR7/9xivpUtxUEgMknnxeH5ARwRu+JtuqYLLnJzNW2659YyuKXXMsQ+Nb5/ vgHJDBdZkP3/gdBq2yEfmFZZnSQTvYM2u0LrVpkfESJMlBZF3weETjbr8CeyYhwtPwCE dcc+iiWaKwFEETRggDDWpEG6eJPOeUzTIqKuZ2ENCRriYMajH7sl2nN6JwBzZ0Ntq2Xu 9KBA== ARC-Authentication-Results: i=1; mx.google.com; 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 c11si14627433oib.246.2019.12.26.03.14.37; Thu, 26 Dec 2019 03:14:49 -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; 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 S1726506AbfLZLNc (ORCPT + 99 others); Thu, 26 Dec 2019 06:13:32 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:52710 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726105AbfLZLNb (ORCPT ); Thu, 26 Dec 2019 06:13:31 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 114431A9DE489C6B6775; Thu, 26 Dec 2019 19:13:29 +0800 (CST) Received: from [127.0.0.1] (10.173.220.96) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Thu, 26 Dec 2019 19:13:21 +0800 Subject: Re: [PATCH] scsi: don't memset to zero after dma_alloc_coherent To: Sergei Shtylyov , , , , , , , , CC: , , , , , References: <20191225132327.7121-1-yukuai3@huawei.com> From: "yukuai (C)" Message-ID: <958ffbe5-f3da-da16-9f2b-05923d13485b@huawei.com> Date: Thu, 26 Dec 2019 19:13:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.173.220.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/12/26 19:03, Sergei Shtylyov wrote: > Hello! > > On 25.12.2019 16:23, yu kuai wrote: > >> dma_alloc_coherent already zeros out memory, so memset to zero is not >> needed. >> >> Signed-off-by: yu kuai >> --- >>   arch/sh/mm/consistent.c             | 2 -- > >    How this one is related to SCSI? > Thank you for your response! I put them in the same patch because I thougt they are the same situation. I'm sorry if it's not appropriate. Yu Kuai