Received: by 10.223.185.116 with SMTP id b49csp8140590wrg; Thu, 1 Mar 2018 18:25:20 -0800 (PST) X-Google-Smtp-Source: AG47ELvFXVp9t2A23tMCuVigUB3NfJjkBIyZzEidPm+vcx1U57831F840mEbFFMdmMcQnkZr4Cil X-Received: by 2002:a17:902:538f:: with SMTP id c15-v6mr3694701pli.90.1519957520737; Thu, 01 Mar 2018 18:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519957520; cv=none; d=google.com; s=arc-20160816; b=o/XvHRlMPhA1NCovmQVckVEFeGYGeP8svob0r5Or4DULAZx2AowbkTjjvKDtCeYcRh 7ulYJA7yU6ULDOmxUQEzt+/hWl7nYCIIOIynjsTyQXLswppr4TcbKf9t3kPnl6L7n8k7 8F2h5XtRzJ4L+cV2H1GQCS2pJRwWPs7Z6tkKWrXdLjQiQAtDhBQV7LjjdlHT3RCMqa6g V+Y0WVtCWBvgjhgJGtQTU8vndI85tKHV/rClh9gFsdjI/Hcu09afWOaSVcfBLsWstQmC F3S6kF3l4laBmmFaQkzWq/PNgpFj/Shw+nuI2z6hDWi1Na9T9pscln7IZpU24LoiqZPB AAgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=lHFm9AULVTok1aZB2RVu3qOpoOetoszxm/Nlb6qK3J8=; b=t0CKfw58OQsaK4zzvmf89TgDs/VV4uQtejsxBtjOTLbgSKmEW4MvLDvxjjQRbi34B4 ieraEkfcqUUktv3FPwRNIBaiQ/6lsb2XpRvJCKcBE6pewpZot+IKNF2dAQvB/7oJV1jh e7YmSBMOwIz5ml2xTT9AG4dfSpi86IdG4LYLLs0zk+lS3/z7XY9Rqd3eBHVPjAR2yx2b i9liMPha7LIDvwLZrraon/F4FwDbkbfhynTPojt7c1iSaTBQOpU+8qocJNhHmK45omi2 PSfzWqtYf5c11wMoTZhLnyJYA5ozKzYs/GUjZsnSKFhc9Kp0htXOw3z4knhg6s2Oakg8 kQ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=tJYIYzB/; 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 b11si3296391pgr.612.2018.03.01.18.25.05; Thu, 01 Mar 2018 18:25:20 -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=@oracle.com header.s=corp-2017-10-26 header.b=tJYIYzB/; 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 S1164261AbeCBCST (ORCPT + 99 others); Thu, 1 Mar 2018 21:18:19 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:52202 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163939AbeCBCSR (ORCPT ); Thu, 1 Mar 2018 21:18:17 -0500 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 w222Bwdq134534; Fri, 2 Mar 2018 02:18:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=lHFm9AULVTok1aZB2RVu3qOpoOetoszxm/Nlb6qK3J8=; b=tJYIYzB/3qyPGlG8enQPRLvJze+MjmYVvrtVRpuKHLz6e+elYPieLn5CCK9yWFSc//xR 2WlwAvaFRQo/NCQ3FUlGjoNCZqLub51eMsydlOrJKQTPtyk0F+eH5SZcFc9pyJb3M/SX PHkjBiTsszE2Us8OQ4HDxdDpzfXdF5ctQcQhHmZKO8vAoXBeheC9XbmcL68s/gns5TwT 4lZ6Fv4T/DWaL3WqvXu/KFc1u4kIt8QFyoYJ5rdR4Cg+6rHkkCSNFjJipBb4arCEeZuG YB28QbrMAXQLn8XlpYkQ6GLwyaoLYZrA311Zl3xh1f7cZIUIe1fXQG+m7vCS5wMV817w Rg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2gewcfg1ww-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 02 Mar 2018 02:18:14 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w222IDtY026451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Mar 2018 02:18:13 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w222IDHA030294; Fri, 2 Mar 2018 02:18:13 GMT Received: from [10.182.69.179] (/10.182.69.179) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 01 Mar 2018 18:18:13 -0800 Subject: Re: [PATCH V2] scsi: core: use blk_mq_requeue_request in __scsi_queue_insert To: "Martin K. Petersen" Cc: jejb@linux.vnet.ibm.com, Bart.VanAssche@wdc.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig References: <1519808113-2863-1-git-send-email-jianchao.w.wang@oracle.com> From: "jianchao.wang" Message-ID: Date: Fri, 2 Mar 2018 10:18:12 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8819 signatures=668682 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-1711220000 definitions=main-1803020021 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi martin On 03/02/2018 09:44 AM, Martin K. Petersen wrote: >> In scsi core, __scsi_queue_insert should just put request back on the >> queue and retry using the same command as before. However, for blk-mq, >> scsi_mq_requeue_cmd is employed here which will unprepare the >> request. To align with the semantics of __scsi_queue_insert, use >> blk_mq_requeue_request with kick_requeue_list == true and put the >> reference of scsi_device. >> >> V1 -> V2: >> - add put_device on scsi_device->sdev_gendev > Also, please put changelog after the --- delimiter. > Yes, I will modify this next version. Thanks Jianchao