From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753520AbeCFMad (ORCPT ); Tue, 6 Mar 2018 07:30:33 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6159 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750897AbeCFMab (ORCPT ); Tue, 6 Mar 2018 07:30:31 -0500 Subject: Re: [PATCH v3 5/8] scsi: hisi_sas: increase timer expire of internal abort task To: Hannes Reinecke , , , , References: <1520261330-204596-1-git-send-email-john.garry@huawei.com> <1520261330-204596-6-git-send-email-john.garry@huawei.com> <3983d075-af2e-5c69-2708-51db8a6b79cb@suse.de> CC: , , , , Xiaofei Tan From: John Garry Message-ID: Date: Tue, 6 Mar 2018 12:30:06 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <3983d075-af2e-5c69-2708-51db8a6b79cb@suse.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.238] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/03/2018 11:23, Hannes Reinecke wrote: > On 03/05/2018 03:48 PM, John Garry wrote: >> From: Xiaofei Tan >> >> The current 110ms expiry time is not long enough for the internal >> abort task. >> >> The reason is that the internal abort task could be blocked in HW >> if the HW is retrying to set up link. The internal abort task will >> be executed only when the retry process finished. >> > Hmm. That sounds weird. > I would have expected that a link retrain will force a device reset, > after which no tasks should be active on the target. > Consequently the succeeding abort task will be a no-op. > Care to clarify? > Hi Hannes, It sounds like you're talking about TMF task abort, right? This patch is related to controller internal abort function. Our HW supports internal abort, where any pending queued commands in the controller can be aborted, so they will not be executed. When a disk is removed or a nexus reset are times when we issue such a command. Thanks very much, John > Cheers, > > Hannes >