Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp226102imm; Thu, 14 Jun 2018 18:57:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKUFq72kxfntLaudRK3YRMU/ZcK6xAkE6YnprIPDWkl3qByubEVQOcmKnZdb0xWhAil0VRi X-Received: by 2002:a17:902:8306:: with SMTP id bd6-v6mr5742124plb.120.1529027845057; Thu, 14 Jun 2018 18:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529027845; cv=none; d=google.com; s=arc-20160816; b=DnLCKmxHQonOCftunuUQPHkbaCO0mlkaSizlvwAwNfYz2VJFHdCpOnb9KM4JO6tDGD Ep56JgKOdqBlO3Qpb8iswNRguwcufSrDWE6ZoFaDsCXNCZZMi/NI+gPoOm1AM/xoncda rByN9kmaimQ7QQqb5ItxgL0IozxxVk0P6Tazl3j6wP9RSNLaEkPElbe3wnRS0weuzaq8 Ds2XBXjNi2ENzpDHEqAlBaltMFFbCVuuMM2cUOHHMQO00wq/rrI3XQdfSZP6KPlApHVg 0eIPa4lKzPMgTsANqtk40t7am7tGeKQA73xJg0n1L0JWQsvRldQ9kwMeIUvnjZNt2Ys+ rr2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=wra2lQURA+dFCnoJSJkM9Jupnkni2a1HRYzKOIMpIUA=; b=DZF7T47OlLnIks7fp4HbfyKtsslur70OYcRgjW3PVZ5nyehC29RhGqOKfYAxNHK3cZ hUIk3Hify3GJwGPd3ru6P1FJARUp37wovk4LyLFr1w30bViseyzYOn86KBN2apiw8/ug TAJFBtnL9WctzEi+GEH62RzSQFm4PHB6VwU4DGBOX9fkb4YgyNulwy31IzAI4jbp6UGg I6zYRLla3bbuzJuiopimdllMn3rd8ePt4HEo5yzBoHy0uk1FvvnpBBmNgs/HwjxDl+B2 cMBexshsZ+17bTgPAozsi71i1eZ4NXdKPi6/wrabq8juCungpxdT4WYfl7yc108/kSDV 1J+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=q8iG+fXr; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3-v6si6523584pld.189.2018.06.14.18.57.08; Thu, 14 Jun 2018 18:57:25 -0700 (PDT) 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=@oracle.com header.s=corp-2017-10-26 header.b=q8iG+fXr; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965395AbeFOB4j (ORCPT + 99 others); Thu, 14 Jun 2018 21:56:39 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:41014 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965063AbeFOB4g (ORCPT ); Thu, 14 Jun 2018 21:56:36 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5F1qWou164421; Fri, 15 Jun 2018 01:56:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=wra2lQURA+dFCnoJSJkM9Jupnkni2a1HRYzKOIMpIUA=; b=q8iG+fXr2FmoEwgE/sBvOIuelMyoTtiHGUXfexT4mZl96YFdHgyRq4lH721hwZ7a4cRD sbED8m9w86v8yJu2S8XMMLqT5ExZr1BFKf/QM7I8bFhRwjhuFttzu74W8Sy0+yxthBQS x3NPjNS8pDqDCUzoscK0Nfiapkf/yB+gvdgbjLh/78thKyL6/iFg9ya4yjv0lAehFQRh 7DyiCbOC47xAtvX9bvk7kYCxzZjnR2+M5WSqZM9Nps1lZWE9/FzvbC1hGqSvUteFdT9B bEmoswz27BiBJkEnr3gUQy+t39M0/TrczH7Efm05HC3RbSbXnlQEdCOlBW++/JLdoRt2 YA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2jk0xrf89e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Jun 2018 01:56:31 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5F1uUK6022814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Jun 2018 01:56:30 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5F1uSNY010604; Fri, 15 Jun 2018 01:56:29 GMT Received: from will-ThinkCentre-M910s.cn.oracle.com (/10.182.70.254) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 14 Jun 2018 18:56:28 -0700 From: Jianchao Wang To: axboe@kernel.dk, hch@lst.de Cc: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] scsi_transport_fc: use __blk_complete_request in fc_bsg_job_timeout Date: Fri, 15 Jun 2018 09:57:27 +0800 Message-Id: <1529027847-29085-2-git-send-email-jianchao.w.wang@oracle.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529027847-29085-1-git-send-email-jianchao.w.wang@oracle.com> References: <1529027847-29085-1-git-send-email-jianchao.w.wang@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8924 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806150018 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org bsg is based on blk-legacy, so we should use blk-legacy interface here. On the other hand, for blk-legacy, the timed out request has 'complete' mark, so use __blk_complete_request. Signed-off-by: Jianchao Wang --- drivers/scsi/scsi_transport_fc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c index 1da3d71..1394810 100644 --- a/drivers/scsi/scsi_transport_fc.c +++ b/drivers/scsi/scsi_transport_fc.c @@ -3592,7 +3592,7 @@ fc_bsg_job_timeout(struct request *req) /* the blk_end_sync_io() doesn't check the error */ if (inflight) - blk_mq_complete_request(req); + __blk_complete_request(req); return BLK_EH_DONE; } -- 2.7.4