Received: by 10.223.164.202 with SMTP id h10csp255290wrb; Tue, 14 Nov 2017 22:15:37 -0800 (PST) X-Google-Smtp-Source: AGs4zMahjDMpEiESwMD95/fY983GQKAGlvQpdYbCNbVEEwL0JQPwvL7pW+CyqesX856sD0trYYqY X-Received: by 10.159.247.18 with SMTP id d18mr14374303pls.265.1510726537170; Tue, 14 Nov 2017 22:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510726537; cv=none; d=google.com; s=arc-20160816; b=iC7S085Qe7chokWjfLmKikiXn9wsL2X/BtYRJXvw5c5j/8aKevlp9sHtidrAsEhFgM VH+wgP2k4gjKsVjqVftEfY+wy5+mOtv57ZP7V/vZYgLagxEHk2cpW9n75mtjwVxlfRzV glfjc7ISGg9usFC4dTx6yn1bvbttbHGpghhM1JzJTJyBH2ytS0nU4UCd5n/wy9Pqmv0+ XBjKg2q47IL0QFtLeOg6niyTTAw3BL21anygXprbLCkDkNKmrZSepjfP4t+iU/IFGCQR 5M7L/i2aU3WKjuIoFwUxlOhczKo4dsAQ+sNWRxcp0Ncw+kNamPXuzUDj8k61aDJGBD81 oTzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=NXQFydaFNH7ESlT0GwF70vtImHhTu3ThcuZyx7+orCw=; b=lMYb5nwBtyC3JXIRrBE5wmm+Okvv7uxT/WCJywFLofLW8I0PjzkWfuHx+NsdRAv3Ph SqHtm2Rdw7lj00knJDcqhMIuNX92B0g0n+FSgxNCP+LpksxJGLo3XZB1/4lhq5K+4EXI l6KrNwPn9SQfq/UCFFyRYzS1uZ0e3JnebdwuH2DF5leS3Cv/Zq522V9mnVXwZv6eaWNb 6fHU9+BU5RzCLm608zoU/Ez5dJt1J4/HQPawEyqU7K06OGhFmo5lzKGS2mkY4BV3o3hT /m0gKI9oRZm0K0UObNSdwH0XejOiV7dcsiqzPBz0p0f6n+P0dq2mcirc7Qgvg3oXV9qH l3xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jbs6LCGw; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13si17904508plq.609.2017.11.14.22.15.24; Tue, 14 Nov 2017 22:15:37 -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=@linaro.org header.s=google header.b=Jbs6LCGw; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756196AbdKOEGy (ORCPT + 88 others); Tue, 14 Nov 2017 23:06:54 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:55849 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753891AbdKOEGr (ORCPT ); Tue, 14 Nov 2017 23:06:47 -0500 Received: by mail-pf0-f177.google.com with SMTP id 17so16067806pfn.12 for ; Tue, 14 Nov 2017 20:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=NXQFydaFNH7ESlT0GwF70vtImHhTu3ThcuZyx7+orCw=; b=Jbs6LCGwfKvHZwaoF6ILUrwM5dviFHV6x0IhrzN8sGmck4Zev1Ev0XPzMEp6HPxRXd gPl3R4FGne7fVUS6wiSXrXBmuO9uE6afgj8PalxwkteEmH/dzK0CakUZm8ulnolqZoBa dwTYd4MG8uAM6eRvPfhoEpHwArWgqhOR+Idy0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=NXQFydaFNH7ESlT0GwF70vtImHhTu3ThcuZyx7+orCw=; b=rvVP/CHUXWaSWVu4N9ibMQXu6biwk7M+bqOLRFDnyY0+oTi/eoKnGj3TdygX97biOa mkzYnbaWY0WoarWtBiu3iK8ONC5dh9DD2JphETO2TaKGJ4yiE3nxsjiNRaPxt4YtokZ1 exPA6xzP6tyW0fGFCvNs//r/mnzqxhLim9aEa87pLnXpYYNe6Ea1pl51A4IfRVn42UUC Duj6WiYcU4zcc4RWq9B+9FUa3I8Jt9wrVyQMDDdyTjzZWMUn8cHrSOncm0vzZkcxll6o YseCqqiAzugdnwEu+tqBPTHQzdyIs9Z7DkeN3IANZ2yFq3V3/QA+HdTjgh80nRS/XUti FX3Q== X-Gm-Message-State: AJaThX6Y+iOsYvL+2idRfk+fZQnNpXeITwYl5xCUvRM0lXwQYtykhFAK GdFZbm73cuv91NCcpCPV1vx85w== X-Received: by 10.84.235.134 with SMTP id p6mr15086014plk.326.1510718807221; Tue, 14 Nov 2017 20:06:47 -0800 (PST) Received: from [10.38.172.178] ([104.237.91.149]) by smtp.gmail.com with ESMTPSA id s14sm23189017pfe.36.2017.11.14.20.06.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Nov 2017 20:06:45 -0800 (PST) Subject: Re: [PATCH 09/10] dmaengine: k3dma: Use vchan_terminate_vdesc() instead of desc_free To: Peter Ujfalusi , vinod.koul@intel.com Cc: linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, lars@metafoo.de, John Stultz References: <20171114143212.8311-1-peter.ujfalusi@ti.com> <20171114143212.8311-10-peter.ujfalusi@ti.com> From: zhangfei Message-ID: Date: Wed, 15 Nov 2017 12:06:42 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171114143212.8311-10-peter.ujfalusi@ti.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017年11月14日 22:32, Peter Ujfalusi wrote: > To avoid race with vchan_complete, use the race free way to terminate > running transfer. > > Implement the device_synchronize callback to make sure that the terminated > descriptor is freed. > > CC: Zhangfei Gao > Signed-off-by: Peter Ujfalusi Thanks Peter. Acked-by: Zhangfei Gao From 1584056717263466123@xxx Tue Nov 14 15:43:26 +0000 2017 X-GM-THRID: 1584056717263466123 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread