From patchwork Fri Apr 21 23:40:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9693989 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7DF1C60328 for ; Fri, 21 Apr 2017 23:42:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E6E82866D for ; Fri, 21 Apr 2017 23:42:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F77B28685; Fri, 21 Apr 2017 23:42:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CC602866D for ; Fri, 21 Apr 2017 23:42:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426889AbdDUXlw (ORCPT ); Fri, 21 Apr 2017 19:41:52 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:25456 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1426869AbdDUXkm (ORCPT ); Fri, 21 Apr 2017 19:40:42 -0400 X-IronPort-AV: E=Sophos;i="5.37,231,1488816000"; d="scan'208";a="108752563" Received: from mail-bl2nam02lp0081.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.81]) by ob1.hgst.iphmx.com with ESMTP; 22 Apr 2017 07:40:58 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=i4gVhYoJj8uW22GkFPPNxm46ItqG1IcwMklwQ9qOOIM=; b=dZ9O3qH6xBZzvmtcEgID7SvwrnBfNN8qQvB7M5nqbNVUxvgrCulhfLN+wUIEEzaQ47TXyEkHUoMpmcbQ+RlT2UPcVSkBrf/LY7sestr9MgMY/86iXiaEsCefJlD3nqntM4KDnPeDehOeLT+aSk5a3XreJ/CKAGKjq2oNDtJPvhQ= Received: from BLUPR0401CA0012.namprd04.prod.outlook.com (10.162.114.150) by CO2PR04MB892.namprd04.prod.outlook.com (10.141.198.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Fri, 21 Apr 2017 23:40:36 +0000 Received: from SN1NAM04FT017.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::202) by BLUPR0401CA0012.outlook.office365.com (2a01:111:e400:525a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13 via Frontend Transport; Fri, 21 Apr 2017 23:40:36 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by SN1NAM04FT017.mail.protection.outlook.com (10.152.88.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Fri, 21 Apr 2017 23:40:35 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 2D.22.29323.1789AF85; Fri, 21 Apr 2017 16:40:34 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Fri, 21 Apr 2017 16:40:30 -0700 X-AuditID: 0ac94369-548749800000728b-bf-58fa9871b98d Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 74.66.18148.E689AF85; Fri, 21 Apr 2017 16:40:30 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , "Martin K . Petersen" , James Bottomley , Omar Sandoval , Hannes Reinecke , Subject: [PATCH v4 10/10] scsi: Implement blk_mq_ops.show_rq() Date: Fri, 21 Apr 2017 16:40:26 -0700 Message-ID: <20170421234026.18970-11-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170421234026.18970-1-bart.vanassche@sandisk.com> References: <20170421234026.18970-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRmVeSWpSXmKPExsXCddJ5kW7RjF8RBms+clusvtvPZrHgzV42 i439HBZ7b2lbdF/fwWax/Pg/JovD966yOLB7TGx+x+4xbdIpNo/LZ0s9Pj69xeKxfstVFo/P m+QC2KK4bFJSczLLUov07RK4Mo5e3MRe8J27YvnyX6wNjF1cXYycHBICJhKrz05k7mLk4hAS WMokMbv9BpSzg1Hi05ctzDBVbw/tZYFIbGaUaNv+khUkwSZgJPHt/UwWEFtEQEGi5/dKNhCb WWAxk8TFpxkgtrCAncTOntVgcRYBVYk9u3cD9XJw8Ao4SJz9KwUxX17i7JadYLs4gcLL24+C 2UIC9hLXuvsYQfZ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OPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(39410400002)(39840400002)(39400400002)(39850400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(305945005)(50226002)(50986999)(36756003)(5660300001)(106466001)(50466002)(33646002)(76176999)(5003940100001)(86362001)(2906002)(1076002)(4326008)(6666003)(38730400002)(110136004)(2950100002)(53936002)(6916009)(77096006)(8676002)(48376002)(356003)(47776003)(54906002)(81166006)(8936002)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:CO2PR04MB892; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT017; 1:tJEX+Wqmhk2pYRpblr1+iq2JmgCQXWb+i/0BrJBzUlnOSl+CxhjTWrQtPWATYWAs096wo1XaN9ZCAMZYHVHb36L4qvtLpzHsjeG4E0sq7BJfzC4rrDhFWPXD30TX7yWVyqcbH92y+kxDMENuMpUdESlQwcMOPn7+ISxWrsQNB2KRb3JnSGtFz4p2ZhnMyDZFmBJ9p9lvvGyaQUsjLNLW/4DiEY6j+cY9b76DVpEkBgzdn9pWDpMj1hcNCLPN8h9hki3R6XOloizasAdOW0rZTVOy3oKb652jD6ASs0/TR0VdrTSUCPTYhvACW6Q7rYWY1OHDVEQzsXKBzBcVZtRKI369KRJDGM9Rz88cdb+hqhlAd3BfDE2u+uPKCcRB+HNoGlQsD4Ae/FOgjTc1UYCYeCzxNi9/6YLRDlBizg8nwkjjEQ0q6Uysn6buzWpWRPugQVDtBkzD4beBbjWuQ2pL47pt7NCXU0CCE+3AdN9VPeBjXRPhUxHFdmrJm3QQnzOA5wAf2v7z7fXTuezzCkTG20fq6MpjBbVsPTIgZIUXJbI= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f10f0eec-007f-45c9-7a23-08d4890fcf71 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CO2PR04MB892; X-Microsoft-Exchange-Diagnostics: 1; CO2PR04MB892; 3:wpeEscTJetCB+5UuPYPVrnyIPZmX+UNk6SS1kdUa7amS4oBSqg3ES0m0gLjVeu8FZlJp9HeCmew/4UvILFh4DgPE25cD2oQjE7lohMOjeXyzGrlUtpQqmbzt11VEeTFeP/61rWW1BTBOqitIQ4baYsQVYkymc3QPeQOgmPb63gVVDZ4efY6LyNPT5dDwvwp2r03wZSztwJ6241q/M/k156sGpVowjqW7NHu5aMcu25+2UbE22cKVlT2YM8ClMFX5eCf4A0M/mxmrsBo7wuUFLZBze6lTpQYuR3tNd11ZdqFEHVbkqlfxVRxKOFaklN5UtebQXHeZnasLJsXZqSJ+hJCt9xoiFwIjku9zAnzYc3o7dUe4Vu9ycINXm9fmldCkSpj0nY7IFuQNtxReV0T62aZqL0Gz+q5MD6eQiY/POiczI1mdrgXOrojCPStzF4fbLrAS87l7HovMKWYSvh1VIXV7j6kNMPnf2UTOgHiZmRGOECn9YAg01py1EEVKVREkbie7GHbLnO0LfrLV/wys4w== X-Microsoft-Exchange-Diagnostics: 1; CO2PR04MB892; 25:sXeoIR52uomS3JQ2ub0y4tVKJCNgR0FIHf+6/5wICu/fdIFRnSt7oQoCWcSAJW9s3rYCNXRl/CCXSz618ENMvKSdmomSRF7yqyLGTnMuLgtb1X8QRZCTDt/KOz81MTmB3XeMkReG2VAa8Q9CIi0TJzD769yvOtYtC+4m11aI4SzoWLRKlwC49CTWGs4BUXF32+Bd79LfACezM4BF84E9/C3D6QpuLSFp7cROtYtIt2VViUrOEtjWJhup9bm+YZGWOprao1gwQhtt0ti8bFHHvLeKMpDH3xd6Z8KjJhLa6diclnuIincXUMBCM5PVuX78XqeVwcaTikLp8AnPNz2D0GsO7aHP1AcE59IE9AW8EWp7Uo85YPfHF1qzxb/Wc5mRRfosiMchLizYgWEVZH3mB+EQzAhYssEbNFJ+VVTVSjG5tuAMStmI388cgDFTlxeVwEToIrqYwwtUePZbyloASA==; 31:89/FGxUlZoTFaF/aNBjkQ+mZKviz0SiCtxhQX1Ux/pci8OipwRvziuZnQb5VVT11SM9q4GYnuNIE4TfAtOa6fNhdPhPtJ++OP8Y3zFkxOn946F/eLH25xH+yJZ1BMBCq72Z1i1TAQbsA3sWza8TxqW/eZx2EidUiYIBZ68H+b4/M0jS1t66O36zuxeaeCiqnW2qVVwUx4O6iCNhzEoZIGUnuNZWEabpY7eqjrqI3CREsg9OkhA8JXxAeQSyUgRIxWkVR7qKAj052j/WMsjn3Yw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CO2PR04MB892; 20:buJ/eI5e+jMJo1pAEbPQfpjx1RX21PeXnrmoq6LA8GP+n36JzdfXDkzKpREn31g3Tn1JN5qPkO6zFSos0zSxmAaXbXKlFTsPuTgIZjMOgShqRE1+jyA9PIRfToAb+4EJq52/7xzkUhD9it6VTx/9TjcuvJvM56oF1Ws68b4H3xED8k0UY3rfrPS20BI9SaDsf7S4v1UmC4vmbuv55FL3X6lVt1f0JH3BJzYj5Q3I3mX2D8XFlzAF/8f6BUSprEc0YaxrKUaBX4S2M3dJP/a+zqUXt8fQg0W/h+GkYSYwJ9NE5QO8sn/Xqkli1hhsxw2w2btHipUizAIDArHbhkV61RJvMozdpAHaHM+s7Hja3sbmSXSm7Dj8qH5QELih1M2cRWOXH6FkZAUHk1RCiMye7rwgAzcmMwFgEp4eTxSKGaTlj56CySUnzNGWb88yraw8rxFVFdCqkZ7AvoMH3zctR8GoBFTmvfTYpMEK5rQGb2+5VJazrOC1C+HtBOvjTFRd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(67672495146484)(146099531331640)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:CO2PR04MB892; BCL:0; PCL:0; RULEID:; SRVR:CO2PR04MB892; X-Microsoft-Exchange-Diagnostics: 1; CO2PR04MB892; 4:HtMUlDBjlDnbUFQvq4/5J6DZTnWfpyh05dKNuKGphzPZUF5yBzKcF0SCSZp6kloSAu1XeCn1svLpmuSgYXsb49OwMSmvWBM3h5u9YkS+OAMS3A/Qy6fow0DnmH+Cku+94eWHkLDi8Z0cRBwMg03T17rzCEE3vUriPw0vaU6HxdHaAHAaP8V7sN62d0XLkCEtkGoDxJ5DTDVML2WHECrEc4Uwaoc7PI9tGXqkSFVUkJXcBJ54kTKPBOH1TEmwL8ZDeFCkbElLK73N8m2dwhQ2hYEqw19HyXqnBG+06gZYt800Jv8e8QF2dJLymMB20W8UolV0eXkTxLszHR9SeagPpN8eOkBIaLF+/TvRlLkYGJjKcDqWk3M+1pyh9l9H8S6F3JfUy1pqVaYKoCTlRxKGKC3irhpGQ2AYPhat1gj1dx4rTu72P1jG+mZR4DL72xTViqaEcqrBCRTQ/FxzUETYa/LjwIHXzWw1RgpVAmgihJveSn4MdKPJTPks6laf277WFpgzx6vDXQF9D8UBWCsytcmBQ7pMh/g2wE9FPl8oKpMVVCebFyVGJ7bDDmKkaWxhL9vr5yyWMfURBSvb8Id0DkI6YSaVv/+pZ/OThKnICy+OeEGYP271goOZG9tB1RZVnVEDgjl2f+CGAZAPoRtz5WR5rgElO/hW6GKwO5gTnFC7pZj1k4Ed0Qiq4NH/z6Kr9e7adgx6xBlWK7qzSUGRhQO4OMZw2WJlAvGbYik2XYOuEer6Xoh/fOPK4dFDs9RlO0+oZPeXV6NcYRgj0veFnxQ9bEuru+z1ejy4nTMY42gh0/ucUixZIGR4TYT10ELpanxhiqJ/bGXJRPLXrhC5M4E6N4saPNdS2YLelPAi66HyzlloNU/IdZCg1j5yXPV49svxH3b9QsDrAylcpBn98O7NCxtavGJ7dv/BTOBZ3eU = X-Forefront-PRVS: 02843AA9E0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR04MB892; 23:/RFbfuaf4SffHFNgJ1dWoHAc84Ouo+IZAcPcqf6/bf?= =?us-ascii?Q?NEjqjWBGpQYLFqEK6mCcAah6xVdZKFDpe9q3oRaiivLzrqGGyF83MnfluCoh?= =?us-ascii?Q?drEx6sDQcMUBTmwwXSSB9YHitI6m78eJ9P5en9mdbWAlObtd/ERHkyLOZfql?= =?us-ascii?Q?9Nz2BNPkIu1NIkmQ7ur/NsqtnFunSgPOcTXCDiku9Hd1At9aR0R5jjZmt3K4?= =?us-ascii?Q?yI/OjIGHWgEu6KJMOa3+OY7mj08LRYsRr24D0pK+IV/XzLLYJoduswY3OVZy?= =?us-ascii?Q?KPfPAU6CoBnax88vC3Hrr775SiOTm397iMNcaTjxo5IO5mDq/4wkUMswNuJ6?= =?us-ascii?Q?GgBOVn2A8Tf6shKbtJ435V5a0bLoxn0hLeZsGU7o+bK6yWppQpARov8oa8iG?= =?us-ascii?Q?A+AtVInCrh57kln+FTBvEteiPVkoD/ID2Q9dZSXezWyIyvAZOht8Asoz8q7h?= =?us-ascii?Q?SmZOmfq3KiLzK3npotBIbr+g6QGH2bVBprwZ8e+vX2hnBMItdgGEIE5JG0bU?= =?us-ascii?Q?opgpudk4sVDsNk1REYOhhX7qmgfPChkC+aSMOLPZ6okj1ImyfryRMKaYHB1F?= =?us-ascii?Q?tsyGvYdLGvytfUYbpaUHShuKxqrhaFvx6c5uRSFz5nxAQdqGe2ViUBzn0ENx?= =?us-ascii?Q?yPkuiOF9dCo5IFkzfnst6/pTkzw8tAOmYF3GPnhsg7+VWIQjtmuK2p4nwlSc?= =?us-ascii?Q?qDDoOcZM9KRa+rR+gseyfgJbFbh4fKSgeKe/JyQoJql14atqADbyBlueRxXK?= =?us-ascii?Q?kM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Th8dmQ2TeO9ifbIlGQ==; 24:WlehU2NeBREXXLMNKujk/wja5eEx9as+rwIFA7fkQ80zIEIKipJOs9Duo7gHzemq3YlXEU6Hbx6ASuZCq6crPeWO9deMA1iFEYAtuOFNfLQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR04MB892; 7:WEgC2hgeLPP/Jtfjwqa4fx5570G6BP6AiKwat10SCmfZSc9eV+i8M7+BIQwIXArFR6pZsLmojWYHeJm1F1U8r2uXuk36SQL7Olt0m35FKkDdAcNali2DwaC3LlXrHrDUFTLi6FAaQANiF9fePADSPZBM8UFOTXUU++auNHmO6e7wIEhVb3ZiWouKDqoRvE/gsxnU+u+CJkwm/MsXK0kpXvCw48T/gC4BrKcuKt4xVQIaYhX7ctm+Yv9/pRNa+TuxuGJxhzXcppmWmaMB7wUPjsI+aHs43TdByPZGaxvqivNpncaC1A5zuMouwHNenUAsO4UXXZpC7DlLMH6UpbJKGg==; 20:hv79BF5P022KYbhDedj6/XXscV5ydgL5m4ZoSvUVQVFo0D4iVjhHXT2knhklB2ttNPau4nHpBrIp4erV5DNPr3QC4dBOY1Ke8oHn6g24zUz5qfeCgcl7huEw0MljW+Frp/OteNsRnUGteX2NuonkdYELyuhO1tjoNz/72jNwMS0= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2017 23:40:35.7823 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR04MB892 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Show the SCSI CDB, .eh_eflags and .result for pending SCSI commands in /sys/kernel/debug/block/*/mq/*/dispatch and */rq_list. Signed-off-by: Bart Van Assche Cc: Martin K. Petersen Cc: James Bottomley Cc: Omar Sandoval Cc: Hannes Reinecke Cc: Reviewed-by: Hannes Reinecke --- drivers/scsi/scsi_lib.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 4a20e6098f7c..90bb269042df 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -2125,6 +2125,16 @@ static void scsi_exit_rq(struct request_queue *q, struct request *rq) scsi_free_sense_buffer(shost, cmd->sense_buffer); } +static void scsi_show_rq(struct seq_file *m, struct request *rq) +{ + struct scsi_cmnd *cmd = container_of(scsi_req(rq), typeof(*cmd), req); + unsigned int i; + + seq_puts(m, ", .cmd ="); + for (i = 0; i < cmd->cmd_len; i++) + seq_printf(m, " %02x", cmd->cmnd[i]); +} + struct request_queue *scsi_alloc_queue(struct scsi_device *sdev) { struct Scsi_Host *shost = sdev->host; @@ -2157,6 +2167,7 @@ static const struct blk_mq_ops scsi_mq_ops = { .queue_rq = scsi_queue_rq, .complete = scsi_softirq_done, .timeout = scsi_timeout, + .show_rq = scsi_show_rq, .init_request = scsi_init_request, .exit_request = scsi_exit_request, .map_queues = scsi_map_queues,