Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5919172pxb; Tue, 16 Feb 2021 10:45:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvjzD1gqtamAVQVEFMfhMsxitaNYHIFaK7vCzRlGKwCd0U7brJrIn9P4JCEkGQhp0hztjZ X-Received: by 2002:aa7:db17:: with SMTP id t23mr2930853eds.310.1613501129141; Tue, 16 Feb 2021 10:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613501129; cv=none; d=google.com; s=arc-20160816; b=UVyzMCJcN0xEPua6ETpFx4QHreydMAEMJwIskgOZ4bVhgUU3ox2csHgqcFzsVdg0Dh mB1GVT5NtHiGfZgj3n+KeY4sS8x82WFJIYPoPMDtg/Q9tUt3ko7cr9T3n1wm+Mr+SIha J6RlV9mbpHX/IWvLWE/ZmlZI6HoO90LPtmC5dG7xL0Cd0gtjfiGmCn0SXaVjs/mrvhQo Vjh6rlCkgOT0tcyeixihsGQuccORO6RJA4IkQyeqmEf5rT6ulSnULltCBU+H7HQIgYfJ cb7vfXrxz6KLSmKB1IDL4V4M4egafsoqgxV58cc270gdUWtRV0C97fAwas41UgC+1zsj lfmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=V1xU+saz9w4xiE659/nYzU7asqdKegzxMTqU8mFL/EU=; b=HTb7OWqzyJzkZ/o2wAvIArFdc9677zHcy+bHysiL3lZ7AOHgDcTSiqpX77ZvjwRIO3 JXBgeTNdDnSQe9qo1ikE3X+0whXG/MdsvqaYiMrLoNEri0G27GCNubJsYoyAVzL1AbCy l8JajshJPOegk+JiB0waR4uka/X6uZLY9vlzyUCsUCL6VMNqZA63nfRCnFpX42y4OWqc QxEnpaakOt8iM/4KLz9cceIIXO90XUF4ox6KUwvYWoceT6N3vStYcXWfawYolPrtNny5 IJTgeRYiePmyKGGk3nQbfYOjh4M5UBvAjiVPNkJDqU3pmLQQpDUk2xJv7+GB7FFlxxKe 8tww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=VSUZDZmu; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si19491311edb.6.2021.02.16.10.45.06; Tue, 16 Feb 2021 10:45:29 -0800 (PST) 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=@ibm.com header.s=pp1 header.b=VSUZDZmu; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230507AbhBPSoU (ORCPT + 99 others); Tue, 16 Feb 2021 13:44:20 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41782 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbhBPSoR (ORCPT ); Tue, 16 Feb 2021 13:44:17 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 11GIWDlZ173635; Tue, 16 Feb 2021 13:43:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=V1xU+saz9w4xiE659/nYzU7asqdKegzxMTqU8mFL/EU=; b=VSUZDZmuDejsM9+YVG+Q1nR+xPVfbS3+TRCWqLYBb0Um4A8GTLO5Co0D50p6VCTYqOGW BJl4Be8LnfIrCV6UuxzWNtPnRN6dtr5Nkz9Ha2otr88hWwZR7OL1irT8x1MSlpX+nzsw foSyBHz45yR3Sz0+++/C6/VdQVdNzKz6mYCAPrTTSotpYUIJ1NlbOHq4x9C2BAl5MoFk /ITuT3b3B58mXwvsDMJfG+nkHQ3fFWyH3L37p9l8lWPI1KHLOh93ndfcGkhMyssdqncD 2i4sAfoWysZIZu9qZMIfxLMpja9wgOPeJ62bM1DLeb2++pZTPy5mCvIgL67m7RxvxnNX LQ== Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 36rhtdusc2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Feb 2021 13:43:30 -0500 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 11GIaX6F016141; Tue, 16 Feb 2021 18:43:29 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma02dal.us.ibm.com with ESMTP id 36p6d9pf0q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Feb 2021 18:43:29 +0000 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 11GIhTAJ7799706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Feb 2021 18:43:29 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 02B7328066; Tue, 16 Feb 2021 18:43:29 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4D7D428058; Tue, 16 Feb 2021 18:43:26 +0000 (GMT) Received: from oc6857751186.ibm.com (unknown [9.160.70.200]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 16 Feb 2021 18:43:25 +0000 (GMT) Subject: Re: [PATCH 4/4] ibmvfc: store return code of H_FREE_SUB_CRQ during cleanup To: Brian King , james.bottomley@hansenpartnership.com Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, brking@linux.ibm.com References: <20210211185742.50143-1-tyreld@linux.ibm.com> <20210211185742.50143-5-tyreld@linux.ibm.com> <94321ded-7970-258c-cee9-222f7b2b511f@linux.vnet.ibm.com> From: Tyrel Datwyler Message-ID: Date: Tue, 16 Feb 2021 10:43:24 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <94321ded-7970-258c-cee9-222f7b2b511f@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-02-16_08:2021-02-16,2021-02-16 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 mlxscore=0 malwarescore=0 phishscore=0 spamscore=0 clxscore=1015 suspectscore=0 impostorscore=0 adultscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102160153 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/16/21 6:58 AM, Brian King wrote: > On 2/11/21 12:57 PM, Tyrel Datwyler wrote: >> diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c >> index ba6fcf9cbc57..23b803ac4a13 100644 >> --- a/drivers/scsi/ibmvscsi/ibmvfc.c >> +++ b/drivers/scsi/ibmvscsi/ibmvfc.c >> @@ -5670,7 +5670,7 @@ static int ibmvfc_register_scsi_channel(struct ibmvfc_host *vhost, >> >> irq_failed: >> do { >> - plpar_hcall_norets(H_FREE_SUB_CRQ, vdev->unit_address, scrq->cookie); >> + rc = plpar_hcall_norets(H_FREE_SUB_CRQ, vdev->unit_address, scrq->cookie); >> } while (rc == H_BUSY || H_IS_LONG_BUSY(rc)); > > Other places in the driver where we get a busy return code back we have an msleep(100). > Should we be doing that here as well? Indeed, and actually even better would be to use rtas_busy_delay() which will perform the sleep with the correct ms delay, and marks itself with the might_sleep() macro. -Tyrel > > Thanks, > > Brian >