From patchwork Wed May 24 00:33:55 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: 9744687 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 EC62E602A7 for ; Wed, 24 May 2017 00:34:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFA8028867 for ; Wed, 24 May 2017 00:34:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D44882886B; Wed, 24 May 2017 00:34: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=ham 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 3D84628867 for ; Wed, 24 May 2017 00:34:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763401AbdEXAem (ORCPT ); Tue, 23 May 2017 20:34:42 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:53630 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760495AbdEXAea (ORCPT ); Tue, 23 May 2017 20:34:30 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="19885331" Received: from mail-by2nam01lp0175.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.175]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 08:34:29 +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=ePik4hjGr9eJYA6qYwnvgNxxoxxmAbPuKf2E341Tyrg=; b=h8zGB7/bXt9yCDUOikHSx/ouZ8uZ9wJkleHo8gogcdmxx4KcqrJHIT6/nNozLSI0W+kPL2fFfqrGm+NTZWnUVt2JNqJ9UzYYQru02OGN81Oeb1nFdT4NJg/dzCypw552RDl+KCX/qKvp8dfmDGP/Ad4yIchFjAtFZPxVuenYLjQ= Received: from CO2PR04CA0111.namprd04.prod.outlook.com (10.165.95.13) by SN2PR04MB2320.namprd04.prod.outlook.com (10.166.212.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Wed, 24 May 2017 00:34:27 +0000 Received: from BN3NAM04FT052.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::207) by CO2PR04CA0111.outlook.office365.com (2603:10b6:104:7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Wed, 24 May 2017 00:34:26 +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 BN3NAM04FT052.mail.protection.outlook.com (10.152.92.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1075.5 via Frontend Transport; Wed, 24 May 2017 00:34:25 +0000 Received: from MILHUBIP03.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 45.43.45291.015D4295; Tue, 23 May 2017 17:34:25 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 23 May 2017 17:34:22 -0700 X-AuditID: 0ac94369-166ac9800001b0eb-ef-5924d510089a Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 5F.93.18148.E05D4295; Tue, 23 May 2017 17:34:22 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , , "Bart Van Assche" , Hannes Reinecke Subject: [PATCH 06/31] scmd_eh_abort_handler(): Add a comment Date: Tue, 23 May 2017 17:33:55 -0700 Message-ID: <20170524003420.5381-7-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170524003420.5381-1-bart.vanassche@sandisk.com> References: <20170524003420.5381-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOLMWRmVeSWpSXmKPExsXCddJ5ka7gVZVIg2Wb2C32LJrEZLGxn8Ni 7y1ti+7rO9gslh//x+TA6jFt0ik2j49Pb7F4bD5d7fF5k1wASxSXTUpqTmZZapG+XQJXRuOe XYwFR7gqDi/fy97A+Jyji5GTQ0LARKJh0y+WLkYuDiGBpUwSOzYcYIJwdjBK7Pu9nh2m6sSn XewQiY2MEs+/TwFLsAkYSXx7P5MFxBYRKJS4tK2DEaSIWaCfUeLo39VARRwcwgK2EjOO6YDU sAioSux/cYkZJMwrYCfxaI01xHx5ibNbdjKD2JwC9hJdryaAdQoBlSzaXgEyUUKgi1Vi1a93 rCA1vAKCEidnPgFbyywgIXHwxQuwXiEBdYmTS+YzTWAUmoWkbBaSsgWMTKsYxXIzc4pz01ML DE31ihPzUjKLs/WS83M3MUKCO3MH490n3ocYBTgYlXh4ExxUIoVYE8uKK3MPMUpwMCuJ8C7f ABTiTUmsrEotyo8vKs1JLT7EKM3BoiTOe05maoSQQHpiSWp2ampBahFMlomDU6qBsTO8ONB+ 9qnfis4L+hf2LU1rXTiHu/7wPe1bVwOSHSYJdP+rvjTlqljIPGfveyZZsx9+zhYy8w88e1Jo l5QQZ35Hfz/fzFwnDekoA9miRcv7t0wXmPVp7ynRbPkk/d2GkZYZy84v0LDat7xycd6Vt/56 rnEis/t+/nhyL7XshpfOzUl+c47HK7EUZyQaajEXFScCAJngTSVqAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOJMWRmVeSWpSXmKPExsXCtZGTTZfvqkqkwbeZVhYHf7YxWuxZNInJ YmM/h8XeW9oW3dd3sFksP/6PyYHNY9qkU2weH5/eYvGYtuY8k8fm09UenzfJBbBGcdmkpOZk lqUW6dslcGU07tnFWHCEq+Lw8r3sDYzPOboYOTkkBEwkTnzaxd7FyMUhJLCeUeL4o92MIAk2 ASOJb+9nsoDYIgKFEvdPn2YDKWIW6GeUuLbuGGsXIweHsICtxIxjOiA1LAKqEvtfXGIGsXkF 7CRaNjxhg1ggL3F2y06wOKeAvUTXqwnsIK1CQDWLtldMYORewMiwilEsNzOnODc9s8DQSK84 MS8lszhbLzk/dxMjJCiidjBen2h+iJGJg1OqgfGYeary9NPH/7pUpMreWhp9gSNS/qfypmmO hcfWXcgUulwgaXfvb9pz+e0Hm6VDVPv8WqWuaXIXeXNtT1E7IiZ7323r19D4/cll75KiXhTx rVrvzDoj+NbH/bPXB+qK3lttl7guunnhcY9vblabJ6Q+zI2wTf8YmKLOwmzLK7qYx/N6wqvj B5RYijMSDbWYi4oTAWTDc/e6AQAA MIME-Version: 1.0 X-EOPAttributedMessage: 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)(39410400002)(39400400002)(39860400002)(39850400002)(39840400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(50986999)(76176999)(5003940100001)(6666003)(2950100002)(33646002)(106466001)(2906002)(36756003)(81166006)(50226002)(8936002)(5660300001)(4326008)(8676002)(77096006)(189998001)(1076002)(47776003)(356003)(38730400002)(966005)(478600001)(53936002)(72206003)(54906002)(6306002)(86362001)(50466002)(48376002)(305945005); DIR:OUT; SFP:1102; SCL:1; SRVR:SN2PR04MB2320; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT052; 1:KaoRNHU0RRzV/mXoVcZMz0uftA0SGWE7cve7oLb7LFjs6WfwAHNLJkhqyIeNBDI1ZhGrSpLxpHlUN6e8A7lAqDy9AVG/hfRI5/qLNEdqLiKsuFuhDbfrSWuZ6WRr4zghPx29LPuoAr9K64q02bAbtYG6M+BwMwZQMw2MI+eVt5vH2zi/+YiWKR/kAUeuUEUxaVdhlNed5Q5qqEhF19KMO9BquS3Z6d2lDb6w1bxSp5LbdJ8o2z/W23837NO6yRszbfHYvZBaIuyS4MRAf8HSRK3WsSbFW6H5XTgzcQN27gFdyHrFRuQD76AXQmnZIXlExaIPP5XqIJO58jfQLa/whOD8bA93NAG05t/77SWn2KVz7bQ+zyJn/F5NIJCwh88FcKJ/j7Sp/X+/8J0uIoO2POPsNQsaPMIybS0iOout1c1tR6F/lxBgzz2qVfGEiOlNgh9PJIhMKRiE53h5mTOWkj6TDkDRZLedI+dxonRy3N9NFx9YY971bUpHkU+80f5ipc6rP84fy0urDbYKb2EC/ywP03GdZco6XMW1LqKkVOY= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN2PR04MB2320: X-MS-Office365-Filtering-Correlation-Id: 9e797dd7-46c1-4aa5-30e9-08d4a23ca1e7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:SN2PR04MB2320; X-Microsoft-Exchange-Diagnostics: 1; SN2PR04MB2320; 3:HSChpRCjgcAFtvu+iaReejuJOG36maO1aXxar5ccHU+osrl/pnyk5uRVxCSf664IggWwi0uxInoafKXgY1h2y86hRzngGnVOy64bK2BQSokBOXKH9NfDYJ7BtETziDtOqCVCM7eQE96JjSRwL++n1VnWjW268DX1EcIKE1bwftqhlvBYOGRuH68U9XOqDXrhOqGKt4AO3cjX9gdTrFa0OqCaj6t4a26xsVU6wNIlXEvbMjMZDeVZT1krI37rOEo5lRdnO2Gx8DmZNUsFjQPfjnpmC/XLNj+iUV39Gv6cvJv7e35cu9yxjjueSItzV8wYbunP3Q2fF0dengXMuItz1xeRLt9kgTsGmA4kounkOcF15mdhhd8hqr07tzZX/LFWepZlwUZbGIgF0+cBsGTv2S/wWJuLA0Q7H6WuO9RCAwuBF//PZWWyvsfqdimaoRWZrveOdRSpAylxXl0vWegPVcLDaO0p3ldilku1cRT0VdLjMsjjA0WYQyfO9CH9YEob X-Microsoft-Exchange-Diagnostics: 1; SN2PR04MB2320; 25:psm/zCotkRQgY0RCRDnZjOVjjsOLSsdTmeUk4HZ66yJu35JAmxJsTHMn/DYxwbm5WHRo8AzoNXrkUAlMuiKUnmMv1WdWDThzBpe1Eo1xktXj1WZ0w+/Uj2J4ciPpVKrzklRD+qRC3VdGWYzb9Y0fW2Ow/+RYDj0MF3P6qSm7llYlpeUZWrWR0pPlD1N2rH78wbyDuLGCzz/nuor6oCfR/ihcI7pJ/LbqSTi4UP8ff/5EXwMCkxl9hm1Yr3nhgtx08FdgEcnxbODkmunoPaXdOlFUTCJ+ih+hJ0APj0BzC6Z7nDiSbV8jgnXX2Nbw4sef7TBIQGMwRc5Mw/BXCElW8X+A968zzjkl4tQLpjPyiDRIkxfbvi6yJbY5Jch9qprLaaCaLkqJN1mDtx/h8Aq1sYVRdxUmHxEiN8nSJU4Wyi/D5ZJcUdxOblyLufkkJxUbskWY691ysTsw6Cq3CaWJ66AlIUcKfn2Rh3ztHh1k2eE=; 31:j3QdeI7GBtH7YdJT4IAU0MsTh94+2qpmMbuCiv0Fqhg5i73jsNjcS3K3Ixdscyuh2/oX14WvJO5+c1Hf4o8q8uQoSn1I0Gl17zrLfXME+Ce9eDuDJ4lQPKalXV4C2FIkDjmp2UHGSV2wS7BMhIh7dWbB4AWWNmTOyACVy6sVgua+QajBeyjA3tecoA3mvlZc9W6ZokABot9WvngGtlwSJ0YMqd1kBcYVyBK+pMwSsp9Lbhyf69uhbVExLUdlLaZr8qh2rVrbHCt+AQ/3vJYrNA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; SN2PR04MB2320; 20:3ikt+UN/Zu9HGMVxGR0OnART9mpM0ZA/1bEnZ6cdDdPfHKovpYUNfZztiEEVqJ40y/Re69vWKXe7+/xFSJ+kEIN9dKQn2mEyPkWF0uCyJTJoqV3cNUKDLq4Ve7M2l+bmr6UddHnBFeohGWiICItPOZxc+yYBdbiLRZrk0/JWomQeLWFfD4oz04ciaQ55IBK9vDDs2fMRtqpL29C4ObnwNQ/vWeOAsZgufBEBVWASr01pAHn8fXQmV/7KhzGDNKNjovOsu7SFK0QjmX/ESfHIxbIImfMmKwX/Mb6Z1bSqXUwrx6yDes/ojd8L9fGYiD8YUWyzhloy/hv4JuNiU4IK++1Lupu0PBrBbbSwMHlk4jddHnPVF8bAVKHX+o6WDsXIGx+JW/XqWYTRWvufm9bSgZJumz68osm5XsptOfcWDcb7ygZWE9Dmt5hOVoFzZ+GryPqSmnHYs4Q70LNPnPs02qzGRlVxoMYGfzGJteyjUehAznuDMUgy56h9AmMf6R95 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(13018025)(5005006)(13016025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:SN2PR04MB2320; BCL:0; PCL:0; RULEID:; SRVR:SN2PR04MB2320; X-Microsoft-Exchange-Diagnostics: 1; SN2PR04MB2320; 4:fa+uGIs3A17+s572Kii+P30MfUwKCNpcOxW3BnmCWTTT6qMd1/o2jSzsTxmXqbfZ6eoTi1BT8xhkVfmWA85/GTBKFgxqT4lhuG+TosqgvwC/1Tlk4JQcUlvw9Ym/7JvPe5gn2wXSEs3g1K9w35noh0OB8txJ+mOnroIukDBSk9Cb8BN+v71XUFEGO/FO3ePUczd2xSEZ5gKTTNIvZ1yPhOjpsio5iBNMyX5DAlignzUrmsX87mWF22OGX+FpdfLaIkDX2cM4XB0/p/wX8K2B4JSyBA5A5nPAl8h16KrvKHaQ4WfJu10s+eWDe9rLlQjXmvmMvGgMocpkDrVO7TJly/pkNAN1uiSNQdVBpPOWgrdHl8x/Z0Hh9Shr+z1NawkcokciXHpMnB4J77z7KoDSdG00B9WrDjYVX5hL2fZTQI2DlSkrVSpdipqK0oYCkRSm55sVkNRkXG+vhHQdLPJg6MvUPRMfsvhTyFJihYa4Pzsbghi/onWJ47gmZ2B/VMv3S5XL0kku3bUchifhMCBp8wmJp4TwfMjNy+D0c2BQZTTRSu0Uh8JEBuVbPW/NANua9T3ulLKRS5VpDgszTKB/CVjoKlMsQJkzxmdWXHlwAMdXwqoRWXMkwdhRYNJX2nFnaZqx17ZRg/WrvzYmrX/rQxX5KnjbdjpK4KIJqZcIwIQ/iKM2Pi9qfz1cpp4Znef9r+xiiTTuinrjsHwk0HIX5rwFAgkX6sa5in+cmkD7GSJk9Sl06hRMUz3kmxANHOVyZwqcWgnZ8V41i3TNrMvh1uJ3jAobcTOrnKXv9fMwRFglOxWs9JO4Djoc4GkStRERDbBTPnJDXR4Fg7VRsZOcj4vODcMcC4aci5wpOnZf/1kqlyLw8ebwWt2lkCA65Op1 X-Forefront-PRVS: 031763BCAF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR04MB2320; 23:7Ck3kq/4bTc+OfbDifRis6OY4FYpPDRPvs+3x9yif?= =?us-ascii?Q?SN9yrc7qRDsfl5UcMtjXTVrteJNWH8R7nSWf3SmSRCs+ImFGBX5ZYVQgi78y?= =?us-ascii?Q?Xou34cATaBrsbVaExJhjhWw0mF1q644UmAJilAu0YJKWHdQMe3JDuMV2XUg5?= =?us-ascii?Q?uiRa5kiSxH98VFvR5R+acow/HrdkZnCg5e8ErsW3atuWrbbb43ZwxlFPlFME?= =?us-ascii?Q?35w54cRTup2bmKATKhzHqaM8G5BTmjle05dZ3Brx80x1hkwgIBUVJ7Q8m2OK?= =?us-ascii?Q?w87q8Mkbj6tCIk90sC4XCD9001PxcL6IL+vID7LImHgSRF8uu6x+nDz5fBjS?= =?us-ascii?Q?ChQLSZr7bULqwpnkZVxCYvLAI6wxTc5V0FoUfEP+0SahP6eNxerrT6zelqZu?= =?us-ascii?Q?ktQl8eR9nBjJxhKoghZkOfvJUssLhI5oFlzZaopUE0BNSgyiu6MIwRqrWPIh?= =?us-ascii?Q?cmyH3HwrUO3U5jHjeD3LEpQRFz0jHDZNcwskOO8KCtRsRoc589EoeZfVJ/Rr?= =?us-ascii?Q?fcbIwRoHqMlOqBw/xTSzP4zAcD1QkE/HiDPKCPyGRLtsswOCbX4U2GK/XvtQ?= =?us-ascii?Q?z17IbKEAQBzwr3fQ2VUEqgfr98BlFXIHCBRyx48MWsat9Srp8GV0FEk0SlTy?= =?us-ascii?Q?uSyZ1ESTR0QMRdJ2/2h4mgKbKTiG6tv0OQCENZI5vKjCsw3THgCDfIOuWrc0?= =?us-ascii?Q?iaAHhjD7GTvvFR5DH+S4O1z0hg4vM+WbB1pA19tgrC0mCcHLFUqixmwd6IAb?= =?us-ascii?Q?XJAVE8AvOOSYCNNDAgmaUSQtg/YizOKsXFOpcakmtG106MJzFUs7cP8/gI1o?= =?us-ascii?Q?fO7+ZepdV+m6Qm+NcK93cKztHJlHCkWHoXoHjaXLTGUJIFilILXVQldkv7GJ?= =?us-ascii?Q?ozLDtbX90531TBsDS7ZQiZvE8mTESh4j/aUjLqBMAD+9dLoM7vaCIQgzUcdZ?= =?us-ascii?Q?1w/Xc9C8yncNb+N8SYoOSAiNVjc8ZQzmOha3O9Wn/tLxxklFRJQT9kwOThUP?= =?us-ascii?Q?Xd1Talh6B+UTHJaknml79u/cjkX5T69ngucKo37cn6qQSmNOS26FD7RSSOA/?= =?us-ascii?Q?bHZMtL1nBxLsgC45cz3FDlDpOI8?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR04MB2320; 6:0qZAX/x+M6SenekBzsofI2ZyuL3F+dXH3ajDaa//TaD1/o6R7UFKir5PrrWDoBKJw8qDSmRNjVojEQVTalVvAMSCrk621YGoLNmHUHdKjDUW6Bzz31YyaIy+Wbes5J53h3DGtBTBOrPjvLZONTDGWNytXU5ODOq2xHcrWoDyxHmsj1Yb76wq0414Hsn4smdeqBw561oRR1wtEJm1Y1y996pzeEko9ewjmcrjKM3rBr5XLc9FWxPpcPt1/jCzdfdOGXQyWoawzPeHgfokUit5LXju2CPL81KQi7iSDEuRyiWCiqURnFfnMh7sehxwgPPFrKxh0tRe53hxZTH9qmwFv36x4xILgcBkBHlTajqjqsG2UZz/cNDUZqOoKvC7prmuphbN7toCnhByIHuiFnssDOmwd8Btch5GBfK9FZIOy4ze0xtCGtKH0Yl7ulolAK2A5lVx1Z5EG0yRys8NKMIyQrQK4F2mBeZg0NS61q8lX+VZVjZN24S2UKVm9XljWTKYs0xgIjkimsFLLkfWtO6kxTJidL5wDMPI1/fRw3Nyq34=; 5:RdvkvxbUzQCziB+cl5GR5BkZdjGuK2o4xi1lo0CqPA/UvfDUUNDodvm+huiuyAUak+PM/Eg44fk+PRNEHOdIgw5qS3pKA49gwPLtl47xa83GXNUM5BnQ7Xs9Gi+rt8m5DSkfGXmS+b1VG0SdwJJJPg==; 24:Y/OMzj6CS1SQzZbdRtdODUkZVx4vYExjlp9iiSrV4/5Y/JwYYGEIoy8c0JDaQ893qWQ+7OUb6BqAHf2V0ZrAfUXiVFE/uW9yKESP8shQiBk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR04MB2320; 7:8quoaMURv30V/FOoPTPyfCckjfR9aZvNxCT3xHDXv6DXcNBoLJpELQIN/2bdAo+ayJs56besKzeiahEqflqv9idtBcg493S314u87rrFKtb5UfmQiXbSVkjIpNt6JTuSjh+GBZxoi7C8Gb+LWajSLvpomBGLkG6nwTh96IiHthXC37qyZZ2FAsGIqkhbIwU5L5yJ7JVf7l731jft+QuC89FxYpSqiy+O1mD7epSYIIu1E8TH9Fo+rrkoLkmokNBHoVkzF3W/daT0VH6WpNZ8LetwcmYjsKQ0PSqYimgef/mlYqR32YfGZ8t+nkxPUxaXQbfGOIDFOaUTaYsYU5OLNg==; 20:db5HXSFehBVLBjMunoi3chpvSc0IhpD9xQAsF2YrKW9OkxAZ+cj8mjJCO0++lVl5xtsWioHpXvcYK4/XuOjFdLlqiIq1DC0gqGcyNe6ozLw487GXzCuZzeWnak879M+O6UrNLFg+nZfv6ZZ3JugFbQClWCSh+xVvLin2zNWRtqw= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2017 00:34:25.9105 (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: SN2PR04MB2320 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP After the patch that introduced this function was posted on the linux-scsi mailing list an explanation was posted why this patch is correct. Since that explanation contains important information, add a summary of it above the code that explanation applies to. See also http://www.spinics.net/lists/linux-scsi/msg106326.html. References: e494f6a72839 ("[SCSI] improve eh timeout handler") Signed-off-by: Bart Van Assche Cc: Hannes Reinecke Reviewed-by: Hannes Reinecke --- drivers/scsi/scsi_error.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index ac3196420435..19cafa3efb17 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -116,6 +116,12 @@ static int scsi_host_eh_past_deadline(struct Scsi_Host *shost) /** * scmd_eh_abort_handler - Handle command aborts * @work: command to be aborted. + * + * Note: this function must be called only for a command that has timed out. + * Because the block layer sets REQ_ATOM_COMPLETE before it calls + * scsi_times_out(), any .scsi_done() calls from the LLD for commands that + * have timed out do not have any effect. Hence it is safe to call + * scsi_finish_command() from this function. */ void scmd_eh_abort_handler(struct work_struct *work)