Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3390192pxj; Mon, 14 Jun 2021 23:08:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLjzqkEiyEcHUQ3sYREoYD7lZpetlaqQDg6g6z808XBHNMCgmR2d231+5Ct8/J4yKPzTvI X-Received: by 2002:a17:906:7c10:: with SMTP id t16mr18286361ejo.204.1623737329887; Mon, 14 Jun 2021 23:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623737329; cv=none; d=google.com; s=arc-20160816; b=oZNPHAeUb+8K0Y4mq9GXY+rfhf99xR7iXUXvo7kgaeDX4Xs0S6SRVLwQNad7MKtqIe RStyX5l08Rn9c5O9YxeVhxa9JfAaKIya09Y/HaijkAe/CtSVppI09GqaDxg82rlHi7JD 13WACIbHf2yy14AQO4p53Dars6t4OUCpL+CTfMohWB9Ci4OPZ5lbQP52d//qBDw6Zfoh inYna3fJFyZPQDOl+HeZZFoTp9JuLDFVZ2VsVaQc55GE5EqvNzmIp/MHzPe5OZiCAHWp bWu5PQJQwEeGaFLoRYYOZfHicsvkY/jkEU+GAay4rJaBAJvZsezcbm52NgrktzFzk4H2 ewcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q4p8q448+JtoJp3d1p6U4lEZHqaguAEXr7zcpCrZnLk=; b=DFmPDrnUWYOnVGC5Q72BQgvZOW99nZ/SKM8LfHp+mC7EJu7KcYumRcqTKQY//2KCZ3 w4GdNsAc3ZrwPQiJSYvCPMIYOMAJTx+JIIGtJZ3u6NbPv/ijmgDDwfzQvNgjpUc3EScK fU12IXB7H0yP/lqySFTFjstU/zT3D3akXzDnUvdLhZ+MCg9YUZ9SOjiwyDK2x5gQmFNx EOPADt8+giafIJzEPnwVxs1UEulFUgMolH0ol57uJLac9Ngzx9Cl+w8ZpLodrWHynj+Q OUQiXTX2UV2YBcO/8sMaPAygHOpqqECZy0JRSOyEliek3Phc1aPXKuoVIB3sn2hqMpAH a81Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cd3TvAY4; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si1022274edb.437.2021.06.14.23.08.21; Mon, 14 Jun 2021 23:08:49 -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=@kernel.org header.s=k20201202 header.b=Cd3TvAY4; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230314AbhFOGIx (ORCPT + 99 others); Tue, 15 Jun 2021 02:08:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:40946 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbhFOGIw (ORCPT ); Tue, 15 Jun 2021 02:08:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ABE996109E; Tue, 15 Jun 2021 06:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623737208; bh=MpmsCBWcltC7Z41R4ZBLvQ1UF4QXF8v/fU2nHODL1P0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cd3TvAY4OhbYr1qccpe3ZqZYT9btNWpkCUgx+7jdGbjaCu3OLGHOl84AlBbfuuM0g vn8bK2wxU+seJnyvWuUmce8g0W9hMCpYsJ9qP4WRyLs9jNYP8CNvX+t46woJwI9xMT 3xz2SJQ9jkWxvjTVSa72l6q8YG2rhrMhsooyXQzbJxKhDq0H/DMG6gR18rspJJE1zt xKhdzy6iBwoX6O1GPVFkgcKVJYywbyHCZDsm7cl/3bn2BJv2xvtDMWUGmP5pbY975R PDqNjlh7bMCbgrH/m+TQp+uUX9lJALhG7G/tHiJFBo9x5Qewfa5T35dmXJhnyZbx0J kyGgUXxcUAyoA== Date: Tue, 15 Jun 2021 11:36:45 +0530 From: Vinod Koul To: Robin Gong Cc: mark.rutland@arm.com, broonie@kernel.org, robh+dt@kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, shawnguo@kernel.org, festevam@gmail.com, s.hauer@pengutronix.de, martin.fuzzey@flowbird.group, u.kleine-koenig@pengutronix.de, dan.j.williams@intel.com, matthias.schiffer@ew.tq-group.com, frieder.schrempf@kontron.de, m.felsch@pengutronix.de, xiaoning.wang@nxp.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, dmaengine@vger.kernel.org, linux-imx@nxp.com Subject: Re: [PATCH v14 12/12] dmaengine: imx-sdma: add terminated list for freed descriptor in worker Message-ID: References: <1617809456-17693-1-git-send-email-yibin.gong@nxp.com> <1617809456-17693-13-git-send-email-yibin.gong@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1617809456-17693-13-git-send-email-yibin.gong@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-04-21, 23:30, Robin Gong wrote: > Add terminated list for keeping descriptor so that it could be freed in > worker without any potential involving next descriptor raised up before > this descriptor freed, because vchan_get_all_descriptors get all > descriptors including the last terminated descriptor and the next > descriptor, hence, the next descriptor maybe freed unexpectly when it's > done in worker without this patch. > https://www.spinics.net/lists/dmaengine/msg23367.html Acked-By: Vinod Koul -- ~Vinod