From patchwork Wed May 31 21:43:50 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: 9758207 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 5006E60390 for ; Wed, 31 May 2017 21:44:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 423071FE85 for ; Wed, 31 May 2017 21:44:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36A11284D5; Wed, 31 May 2017 21:44:10 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 814541FE85 for ; Wed, 31 May 2017 21:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751086AbdEaVoH (ORCPT ); Wed, 31 May 2017 17:44:07 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:6729 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075AbdEaVoE (ORCPT ); Wed, 31 May 2017 17:44:04 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="23076390" Received: from mail-sn1nam01lp0115.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.115]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 05:44:02 +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=Xecz98/lRjIC8HaZKN5Tje5EnvggakdMj49MWcbtGuo=; b=o6EcHtGK3yLnSXCcR+/nxO9yjDItYHXXqKhcmN3oBmrXM7oOZ1vSFxNrvuNQATXkZsTqwgExPCbkkLTIskPDBoIlE+4Gy7CVrUDX0e0SUJ3tPEdIAds8dff3Buu1Ec2qGAyq1OvHYJvDMJPhAqC++pzDdgLMKOoUKWdbQ/Qao/k= Received: from MWHPR04CA0090.namprd04.prod.outlook.com (10.174.173.31) by DM5PR04MB0396.namprd04.prod.outlook.com (10.173.169.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Wed, 31 May 2017 21:44:00 +0000 Received: from CO1NAM04FT013.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::209) by MWHPR04CA0090.outlook.office365.com (2603:10b6:301:3a::31) 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, 31 May 2017 21:44:00 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; 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 CO1NAM04FT013.mail.protection.outlook.com (10.152.91.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Wed, 31 May 2017 21:43:59 +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 17.22.51736.E193F295; Wed, 31 May 2017 14:43:58 -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; Wed, 31 May 2017 14:43:54 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-c1-592f391e2c30 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 4B.DD.18148.A193F295; Wed, 31 May 2017 14:43:54 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , "J . Bruce Fields" , Jeff Layton , Omar Sandoval , Subject: [PATCH v2 6/6] nfsd: Check queue type before submitting a SCSI request Date: Wed, 31 May 2017 14:43:50 -0700 Message-ID: <20170531214350.31157-7-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170531214350.31157-1-bart.vanassche@sandisk.com> References: <20170531214350.31157-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRmVeSWpSXmKPExsXCddJ5ka6cpX6kwfFXshar7/azWbyYEmWx cvVRJosP//4wWuy9pW1x4cBpVovD966yOLB7TGx+x+6xYWoTm8fls6Ueu282sHmsbX/J7PF5 k1wAWxSXTUpqTmZZapG+XQJXxvkTd5gLfnFUHG6dwNrAeJi9i5GTQ0LARGL78U7mLkYuDiGB pUwSZy5vZoVwdjBKNHfPh6v69f8lE4gtJLCZUeLzXjcQm03ASOLb+5ksILaIgIJEz++VbCDN zAItTBJbDj8AaxYW8Je48+wRM4jNIqAq0fD4OhuIzStgL9E5v5kVYoG8xNktO8FqOAUcJKZ0 PGOHWGYv8f5+BwvIUAmBZawSK5dOYYFoFpQ4OfMJmM0sICFx8MULZogGdYmTS+YzTWAUmoWk bBaSsgWMTKsYxXIzc4pz01MLDE31ihPzUjKLs/WS83M3MUIiIXMH490n3ocYBTgYlXh4BS7q RQqxJpYVV+YeYpTgYFYS4fVV048U4k1JrKxKLcqPLyrNSS0+xCjNwaIkzntOZmqEkEB6Yklq dmpqQWoRTJaJg1OqgXHyKeYb/NfEF1+YcNHvk/7ZfMGmAxO3Gv4QWSx66tg9S/spzCktWppG 5xb7M1psnmQ9XczG405ZXo093/PiKb/UwoyqWOUqS5ZYyfw+Gcawyjtq+UTnZ3tPNE76yuzK djfIPv/FzruqnaIR35qfyv3827NZVaN906EnTXc/HnvBJZd3oFX2wTclluKMREMt5qLiRAC1 +KltgAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLJMWRmVeSWpSXmKPExsXCtZEjRVfKUj/SYOMnHovVd/vZLA7+bGO0 eDElymLl6qNMFh/+/WG02HtL2+LCgdOsFofvXWVx4PCY2PyO3WPD1CY2j8tnSz1232xg81jb /pLZY9qa80wenzfJBbBHcdmkpOZklqUW6dslcGWcP3GHueAXR8Xh1gmsDYyH2bsYOTkkBEwk fv1/ydTFyMUhJLCRUaJ9+SoWkASbgJHEt/czwWwRAQWJnt8r2UCKmAXamCR+zb/MBpIQFvCX uPPsETOIzSKgKtHw+DpYnFfAXuLUhcfMEBvkJc5u2Qlmcwo4SEzpeAa2WQio5v39DpYJjNwL GBlWMYrlZuYU56ZnFhga6RUn5qVkFmfrJefnbmIEBxBn1A7G6xPNDzEycXBKNTDard5Q+V9w uvD7xNO1gQeb3neneV2Ica9pzNUKuL/u8nH7xE1vX8VsNSlr1Jaad+JY8CkTvmka7slGMnt8 kxTv+B3+YnbIxv8Xg23cepcLf5fF3Pjp4au2jNv995E+4cXatqWxhlMseR9dEG0zn/B548/3 S59mur8S7vb2OnNSJHEJt/8uX3klluKMREMt5qLiRAAZ/u+L0AEAAA== 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)(39450400003)(39400400002)(39860400002)(39850400002)(39840400002)(2980300002)(438002)(9170700003)(110136004)(50466002)(5660300001)(189998001)(106466001)(38730400002)(47776003)(33646002)(1076002)(5003940100001)(4326008)(48376002)(36756003)(478600001)(86362001)(77096006)(72206003)(6666003)(356003)(2906002)(6916009)(2950100002)(76176999)(50986999)(305945005)(53936002)(50226002)(8936002)(54906002)(81166006)(8676002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0396; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT013; 1:VV6Yhvu/9rccNWzz6fg4avVsXc8vxPvs3FKNBc4LiP2ZhBVBCjS6C4LYF7D1fb351mT2ZwEaAyEv9we77USyRuT8Zb4yQnc+KKC4p+usZoRpYB7RSisEu1CSMJHxkr8VWaOEyOWhDaLa4lUPoOBaSs0zfLGkSQygXBxRJIbwYpp6qItoJpBA5aDxEzLPUDVTbsw2Knbk0iq/xpIXq+tU6y5a8e14EyQa000qDkxe12P4hGBl6XhZ0lgxdQcfMF4Uxzg9PrXOis6MLqENKLvzo7MAZjW1PwRqJHHwGz6aIgLXJEwesDWY88pS4VSyemNk1QSDA+E3S05iPcKF7hNqX/UhWbXDv0WyUg+6c9niXPYOoz6ZDLy9NKbKAFkMy2IiPWXsaJdyGrZ0y+0WtCEekM+ST0lOp+F15TLJi7T/rmDE/iL6rF8oRMWVx4QNOLlcmOVdQU00apCMgjyapJcnTOycYmv10rkrCbrZXrmlAHITt+i+KFCBDZMF27JEyqN67oKKbA3ps1V8FvHmFWyIyg== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0396: X-MS-Office365-Filtering-Correlation-Id: dc58dcd2-5370-477e-3383-08d4a86e25a3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0396; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0396; 3:bHjBOga0aTLwayvkeIDHlWBNSslE61TSRMOGL2LK2b4eLOx8cYcA98scQHRSZ7mILIP5tasIhnQuFb1LNrkGx23XBsW31mgfWwod5lICUqPukWM11jhl2k9fDdRQGxbGBEe9gkjQvH+2X09Tp19C0dYwUFXMRJQSb4gPkIS9Y1IUlosV0mf1KXurFVhAsRzK7oxrlfBVzYjkeer9tHPAP+4e/ZnJchwM3+WP/MpmW6idyN7Qfeld59pY/o40X/Z1xAAmz1FZ2hGr8bnqqhB2GH9jqOrVCrFG+P2LOQQ4piiAiiv8oVq5UWI/uKVnj58fSdyyuog3LlZrLfcsU2h35iYOnUVJSQLw4lcm22ZExLwkF8aTS/bP+7kTjg44PvIcjGXdGu9hRZcREY3lpv81XcjhssSQjcPb8QLTPDxsjeSDltMhLIxo356q6TCi/htb7WXpXPC/dJYpBvJl0GjSXf9lQ6lHZwNcW+CjXstB83MbviiPM9DBW6/Y/RT+e7Sz X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0396; 25:GaG5ZLdbIJ1pBu82WC4z0ZZD5oEsYbCVIXp+T9qzLyZWUBf4qkGxCoyON9Tlki94VsgOSjwtLj9QnUqRhBOpsAQM+3bU6JrailB7C4mlKKBWwQaXlPoO3zLV01ImKdlyINYlVHkcpZ13BFYQyw8lqqXOo3B5fhuIL0Q0WVq0yB2neu0l/3/WzeTbGsU/ujVApoJvdeIU8FUJFpW/kv1STLyuoNtF4P9FGFNgisfd8mdNbxu5vzRpN8aMd/eyHltMazzz62+Uq6vEnKRkgYVYa82lIZ8/GF7Xex52U1J1dZr+VkBNoRN4yI2U00QeblycAWs3uuWolN1+Zz9SoRdag+DimkQk0t85x0m+S0arO5C8UCyJxoE/8kOS3BD1O+j8ayODX5eCJzlUCLCcpMlFT9Nbzlt8RbRyWNlkHh+dd/PRdk4TwIvlg7PfNNmFzZM8oU7dPPtNw4y5Kb6hNBb98/BBi8XjEBlbERXw6Ng9upo=; 31:PkoU3gKfjy/w/fBt/uNQUgaFYv52ukNwC6vsOZCMlva3TbVQhuGM4ZTU3rScAOYbXQ2o221qsoSKpmfHuwzjBeqjVN2n0S+ORMSWRMSscrc6bliihOvcMZT7yItGAb2yi21C/S4GAEMVxRswCU1cHIcg2NpfaApSp9URTyuP8ano9szlo1wo2yb5kPpKMTejyjFzYSTdHbS801UAaZ1VOwWa70g+Gt7x8ZyC/2I51q4atE9Bb8Tz9MYPRFHhnKOkfUczP83heyRhRnnrzp7I9A== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0396; 20:GGqqFxZHBh43al6+ZisNQIu3VzCbXO2IozXPTQ3adwUuLdt2BbemnPHY8raFwEtwEUqblFjiA7QxKMKYQCkaa5LsLGZhN/jGJKI7Qt8ulIFjiesZcvnYCuLKjJNFKHSWoOS4SkyLSNeHXd/TXXOIm5DzzmrXopVE+26fCPMwbzjhabQlfGDCA0KPTLNmsXZrpGFiz8XdCeuzFaccMcsut9dnNbnUz4BfYE1ib1Ekwdp8dbxvhvLpi7XF2MXeUSfLHOUtvrBHb07BW59bLejyuMCOhL/rMgzM0+p2xaEgpCCc50+sv3wUYZ7bOtu6jSBwQmyzfJg8u2CTT/S0VOY3WcwIuyxU3dW+hssE2JDjSl9/h/kKtC/UYnmjCUoXqFruQUYQIdgFdoZvru9hD4KC87cTIaNKyL76X0ve2w/Q2OitzV/oYa5ITCtwRWUSBlrBLsVxn26B3Qebza0DL9Y2EJnKIjf/idNaBV79iB/h8DGehkAJjprx/0p8yI+diWS8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(100000703073)(100105400095)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123558100)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:DM5PR04MB0396; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:DM5PR04MB0396; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0396; 4:+Pypjsu38KUs/+EsP7x+ySZTV/i2T6fuT14X6/Z4Vt?= =?us-ascii?Q?11dEzvk9o9O/njlPj2crHZQ4eHiw33psGQLVeXTjxOzYUlZFN+TpjBGEc8Nd?= =?us-ascii?Q?67ptAwC3idsbGr+43gWM+8WkqYLXdJ8aUPlmHfGvvINko2yAGukeKrtQSmpC?= =?us-ascii?Q?vSTfpZVt8lg41fgOFKfFGDGUbbu/X5xvxWHjYqy0Mi7pprI/GFm8OF8mG9Hz?= =?us-ascii?Q?/35GHa2+rrzl3yaY2i7PGFIQyAtOMComUPjP0kcJgy0N9WkTrLibNcgGSUg+?= =?us-ascii?Q?NNo/fwPvzRNIvz6iSmYIv12AIFxMawWwIxZZlzO2gayswUtFqdFALjtH20Ns?= =?us-ascii?Q?/LymBy3A85xmpG/iEJ14FKNgy63oatQ7l4vfu/2kOb3px+/xmTWqnIj3+TdU?= =?us-ascii?Q?043XYS0WYO0QmcwAK9XONBY2f0CG+yhoUVuyhtpnAWVTtJhWF66xywwWaU7J?= =?us-ascii?Q?TNoNy2iIAUe4cl4xUuzl8MbJRFCDUBg2r/5PeL5ERJ4RBhNKN4/98IT6MIWq?= =?us-ascii?Q?gHDs6z3AaLbJaPrHDUSElFYCGfLuEfvbSc2QSkAjGkfxBSL2suoZDko7m6TI?= =?us-ascii?Q?gu0Jdqv/lAiCfn0ggkewFVr4Z9hghS3Kz/6fYyXjqRZW5cUU/azgCgkAPEy1?= =?us-ascii?Q?qmUDQ6Ea9Fz7Q5vLd/0e3uJnPW+cCawekxETl7oUzgBOf/Inmj6AaCd6HGXo?= =?us-ascii?Q?NCST5ipgVFQQfmr9Jucs3qovZkBFwaqqbEBrDFbDbk6WStYyZlWXj6mdhJRX?= =?us-ascii?Q?9mg/GHKuPzgirfBb6ps9uD+q1qP9d5LBTma0oCpzL/Ca1PDU7IUk+8vZI+PX?= =?us-ascii?Q?0DdIWgCExE52aELk1ZnH+ALhq/8NcoD9l+2PGWCTK7CK/UBfE5jhRBgSixUr?= =?us-ascii?Q?liBpjBuFYv/R0Ig4J4xHTVbIjEDBiyqoptKGzFVDOVI2qo52KBbSMndBG462?= =?us-ascii?Q?BS8oWYa/i3FQO538nXd6GM72/t8E5jZqLqcS7s8saoTVLnTO4AQz5fLywehM?= =?us-ascii?Q?kFj6fT/wksRIKbkLumTH/4TRxgaSQdjHr22G7juaojwh/gIRZ0zyPh0d76HX?= =?us-ascii?Q?YePvnFD/WCw9hd3W56H8XvkCS1P/3pIaAyZnQpQkSY8buQp+2b+vbc4SZ/55?= =?us-ascii?Q?30kERZCD88OfQ7ZY7/RUu10qzVIAvq3PD7pC4lkNL2sHY5IiQi38A9qoir75?= =?us-ascii?Q?HRKWRzLe+edM9/nu5PhCclUXaW+woGx46Y8E3mJqCL+jlfhBUHsMeBT56VBI?= =?us-ascii?Q?TK08Z3qzT/3JHddGj2NYxMqh40kvv+BkB3UASewAmCEJVwocIugkYDQ1ZVDZ?= =?us-ascii?Q?H5wa+y8bfWE8Y4OUGvtZg=3D?= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0396; 23:qlNx8AHmC3XvNBWEa2Fj9WY6R5L8X1+bB1o/UkY8E?= =?us-ascii?Q?6njX/MNUFDUQmHAYDFyHrCPN3F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pLBMGf87ht48DuBKliOlTl5trvc/84tDneJNTJEKuFW8vEGJm6g7SRrN865bqS6udqwxUgOmhdluKxctZQ/yD2tSzRrV/25KY5ebF8VZWN9dU+1+/EuDh84+yBilNmqcF9OkTIHSH3dc4UhceQ2K/EsTIutR3b4wAP1uLKhSr1oDBgBdlR1kytwZiKS547Jd2bGdlWoAt/U2qh0oAoGcPu2vEtZiGKnsMz8derC; 24:4MEx9miwJii/8Jk1uJzQGuhpgBVVCk9lHJGyJXy7+DSm96tTwd6sa1QwuFuptVvPcBHT8g87zt1uZqr8z1Ec3olcQF4E3hvQDmyxZZ+t8n0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0396; 7:pJqVgPT0LzRAqKvrDHH1+dcYQZMKIOGlRfi/fGt4D+Pm6AS/4gzmxCMQjPRn1izcSS1SwEiILAsySvQTHDP/Y0MSv1TDgh77JVOnWNR0udwnybL1vnGgKnghXBQjhMTnh2r7/aMYdnbhTFygjfjermlpmHSrK5I/6qiLiBqOgsSN408D7T2VU/2dGhzHgQFSYHsrbUVPVXICG3WQf7+uFa2t68o1ySj9D9PdmayiDD/VHVr9QZTsxw+RaHhQIDPT1q6aE4bsLcoGQTkFwWcInqxlmlivmrZbBdhuPEYl8fSLjitOrtqWberwRmOoRJQIxfd8mzsCYXDGIZNnQNuBIQ==; 20:Rw4vQH+yVadPJIW0Ix1Q+87360rwre1XNOLVNjpJVNhhNBtD1tiL68T5TJHRgmosh2uoBkhlR9CblT6U64VtsvaLzxAfeVo2K3ABP6nW/YxJ98RGzKTLoI2ybHNLtwkosfUxMBIp1pTvK+3EV4kBnyeDhfd9BhSdbGHaFw4iw3M= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 21:43:59.3028 (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: DM5PR04MB0396 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since using scsi_req() is only allowed against request queues for which struct scsi_request is the first member of their private request data, refuse to submit SCSI commands against a queue for which this is not the case. References: commit 82ed4db499b8 ("block: split scsi_request out of struct request") Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Cc: J. Bruce Fields Cc: Jeff Layton Cc: Omar Sandoval Cc: linux-nfs@vger.kernel.org --- fs/nfsd/blocklayout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/nfsd/blocklayout.c b/fs/nfsd/blocklayout.c index fb5213afc854..47ed19c53f2e 100644 --- a/fs/nfsd/blocklayout.c +++ b/fs/nfsd/blocklayout.c @@ -219,6 +219,9 @@ static int nfsd4_scsi_identify_device(struct block_device *bdev, u8 *buf, *d, type, assoc; int error; + if (WARN_ON_ONCE(!blk_queue_scsi_passthrough(q))) + return -EINVAL; + buf = kzalloc(bufflen, GFP_KERNEL); if (!buf) return -ENOMEM;