From patchwork Thu Dec 31 08:56:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 7935781 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1841DBEEE5 for ; Thu, 31 Dec 2015 08:56:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 24AFE20265 for ; Thu, 31 Dec 2015 08:56:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E4F7320263 for ; Thu, 31 Dec 2015 08:56:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752633AbbLaI41 (ORCPT ); Thu, 31 Dec 2015 03:56:27 -0500 Received: from mail-bn1on0098.outbound.protection.outlook.com ([157.56.110.98]:12845 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752207AbbLaI40 (ORCPT ); Thu, 31 Dec 2015 03:56:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rMDQJtiq3fb+jHRhQX/ClQJNCDZbIUrs75JsPabn5Rc=; b=JeaoeSmaerPuFqDFM1mnA2xz93jNbF8c9+pW5u/885/bEsWqxMiswg1xv3LxT++u5Z60n2DezRLvwikojpO+J8QFXAEaYTcvFjTSgZSdWtrlGAlPkSY7B2vDPlFgszgEROoMYbMIeJSFarbMgYjxxcKPcvGp9jaYw6BLu9+0Zyc= Received: from CY1PR0201CA0018.namprd02.prod.outlook.com (10.163.30.156) by DM2PR02MB304.namprd02.prod.outlook.com (10.141.83.148) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 31 Dec 2015 08:56:23 +0000 Received: from BL2FFO11OLC016.protection.gbl (2a01:111:f400:7c09::137) by CY1PR0201CA0018.outlook.office365.com (2a01:111:e400:58b9::28) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Thu, 31 Dec 2015 08:56:23 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.172) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.172 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.172; helo=milsmgep11.sandisk.com; Received: from milsmgep11.sandisk.com (63.163.107.172) by BL2FFO11OLC016.mail.protection.outlook.com (10.173.160.82) with Microsoft SMTP Server id 15.1.355.15 via Frontend Transport; Thu, 31 Dec 2015 08:56:22 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep11.sandisk.com (Symantec Messaging Gateway) with SMTP id BA.A2.04667.5ADE4865; Thu, 31 Dec 2015 00:56:05 -0800 (PST) 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.248.2; Thu, 31 Dec 2015 00:56:06 -0800 X-AuditID: ac160a68-f790b6d00000123b-6c-5684eda58856 Received: from [10.50.231.75] ( [10.177.8.100]) by milsmgip12.sandisk.com (Symantec Messaging Gateway) with SMTP id 7E.B0.17166.4ADE4865; Thu, 31 Dec 2015 00:56:05 -0800 (PST) Subject: [PATCH 1/3] irq_poll: Fix irq_poll_sched() To: Doug Ledford References: <5684ED4B.2010303@sandisk.com> CC: Christoph Hellwig , Sagi Grimberg , "linux-rdma@vger.kernel.org" From: Bart Van Assche Message-ID: <5684EDA3.60802@sandisk.com> Date: Thu, 31 Dec 2015 09:56:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5684ED4B.2010303@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsWyRoxnke7Sty1hBqsmW1i8PP+B1WLl6qNM Fs8O9bJY3Gh7wObA4rH7ZgObx7Pph5k83u+7yubxeZNcAEsUl01Kak5mWWqRvl0CV0bj0gam giNsFT9vnmJsYNzD2sXIySEhYCKx/c9ZRghbTOLCvfVsXYxcHEICJxglVvw9zQ7h7GCU2D97 MiNMx/UPrUwQic2MEkuPLGQDSQgLGEusuv+DGcQWEVCT2PRqETuILSSgJbHs7G2wscwCzYwS G699AitiEzCS+PZ+JguIzSugITG/pQNsEIuAqsSFL2+A4hwcogIREot2ZEKUCEqcnPkErJxT QFvi8/xLTCAlzAKaEut36YOEmQXkJba/ncMMcecmVokp+3QhTlCXOLlkPtMERpFZSCbNQuie haR7ASPzKkax3Myc4tz01AJDQ73ixLyUzOJsveT83E2M4PjgytjBuHWS+SFGAQ5GJR7eBWkt YUKsiWXFlbmHGCU4mJVEeO2LgUK8KYmVValF+fFFpTmpxYcYpTlYlMR5rVvUwoQE0hNLUrNT UwtSi2CyTBycUg2Mnex67CJbAxme2qc67HsZYc0f2fx3wr4959OW3l3y6EH9rmVfpz5uXBKb Lrb/4/qfk++3b+Bh/5bxPNwo7PvOdXcOFXpcDVk+ye6l/4+t7VpHxbR2Tjjl9sxl/6Rzwddl Oibtk8qYoh5+fWNwdvTzT0fPXclaxPdi3Z37TyofBoVu4fj1eU9m5R0lluKMREMt5qLiRAD1 wQZniwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPJMWRmVeSWpSXmKPExsXCtZEjRXfp25Ywg0kHdSxenv/AarFy9VEm i2eHelksbrQ9YHNg8dh9s4HN49n0w0we7/ddZfP4vEkugCWKyyYlNSezLLVI3y6BK6NxaQNT wRG2ip83TzE2MO5h7WLk5JAQMJG4/qGVCcIWk7hwbz0biC0ksJFRYv8aARBbWMBYYtX9H8wg toiAmsSmV4vYIWq0JJadvQ1Uz8XBLNDMKPH3+E+wZjYBI4lv72eygNi8AhoS81s6wOIsAqoS F768AYpzcIgKREgs2pEJUSIocXLmE7ByTgFtic/zL4HdwyygLvFn3iVmCFteYvvbOcwTGPln IWmZhaRsFpKyBYzMqxjFcjNzinPTMwsMjfSKE/NSMouz9ZLzczcxgoOUM2oH4/WJ5ocYmTg4 pRoYy1m+cG35oz4/82DJnJ/c9oqdNU9PxSvkeepMrT7femOCi1msQuVcgbYy32tzlAsCzh89 5fdi7/5HawLX7g7e9vmlweOA/KJJ31/fW+W5PWm/1ISn9elvGSXttVdwei/YvUT3hRhTlrqD Rcxh6+id145GaDLFZwafjvX1npH2zvJCU+KTjT8DlFiKMxINtZiLihMB0kT73gICAAA= X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC016; 1:nyEYCdyazaan+h6ehvlRVfM/4Iy1ZZ/GtCh8EOuS5mW+HdXp5kDxr8KJ76DZtAHtT493rn3r04uokZRF+4aWw7UhNKMhfZc11jxKi3hKeTJulkMpC1zWipKIdZXGDr73X1h3pTiZaRCa6jxqsdMvkY4xo4XqyS39JfkkHN3KEAdXnzG3rOG7Dc18RemHcDIm4GNE8g18Pn9CaradK5X4XKJthLBtU0Jl4xynogK6dpwMSFYLjC8MS3tvaJGEn8HPdXxZ8dRz9QIeWHypGEF+ePegCzRC4blMwLYN3YdedFfoWFpuX4E6dVGckVN/TioDGo/Tzl+gqzluQLTAuEXajSadN7RkHy5ylpaho5zBQMs= X-Forefront-Antispam-Report: CIP:63.163.107.172; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(1220700001)(229853001)(87936001)(230700001)(50466002)(106466001)(11100500001)(23676002)(86362001)(4326007)(83506001)(110136002)(1096002)(2950100001)(81156007)(92566002)(189998001)(586003)(36756003)(33656002)(97736004)(4001350100001)(77096005)(64126003)(65956001)(50986999)(47776003)(5008740100001)(54356999)(65806001)(19580405001)(69596002)(19580395003)(76176999)(5001960100002)(65816999); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB304; H:milsmgep11.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB304; 2:fPYhR6LBDuH+ZzXozI/+F9FPz2+/Ivk8oWbvaDvPeGnUBR9+mCiMbzgFO8bp9jgc2VQRx71MQIZVmeMMTjj5ez1LSFGY5BGA6MchPo3VJQc17GLYaClaEjehimDgtDTlWKTaQ1BYZevLaDc6lQ3Rxg==; 3:9UxmIg9JxVPyS6Zo8JdKYdPYZkC5MG0+N6JB8k3+rJQghgUx1TN/BwV5qJOG3MSK1sRhqZlDxTnvpzgyx9UevPpmo9Q0h/6p+TUET951dGf6fEZtMiPl2FAuSJuNCB2j6ZLMjJIhG8WlCbl+mAUu4IiLpFwDdbdvVYB0dOE5bcSAoKJTKYO8PZCtcyg3nyOlY6hb1IQ33nGV5zhDPEJpWYysiny4mTevTt9UMvTb7ucaMwzxH5PGq9zPHWSs+LWgjcEEDcz4lAm9Ai6UkJ8rqQ==; 25:QJBE/kduBVbdT+roHYTmg+yyAJ87CaATl//JWOFT/JOV+sCPrCQ/SDWLNqwpC7EucIEtcflo0za04oUSC4itY1m9BYTonEcsRb96QLV1RxW0ihnDQnDy4FpVIrOAVjBB9YO6oXgR+UCKB4u0saFR1OiWVyCxmTuay0VM7uZXELDqaKbQxrmJb/THITXXLQo4t1DVldrO+1DiGiloSQp1lg7cQu1cnT5w3bahregLd/I1eHikdXjfuJEI+e20TKlW X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:DM2PR02MB304; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB304; 20:J2Tt2RMrQUuW1aozz2J8KvTVO27meVyXL0X1mmNSM/IgFcks2jcTu4S1J2EFxMYJ45uL15pcOwXpWrli72acP+3pLhUi1YNBwjs6pu/NXkbPhBeiUKQ7FufEygX1aCQnAG3qeJEtrcl0BC7JoyGJg2A5lrxXLPkuuFO3Fz8i10h9RSQFPJAq9WgNf044xszgA8jktRiq6+iHwFuKxdOW+WQ92oa6i74C29mi2rsJZKo4lOT1DkXSJzbXBFrWo3Mn9bx6fmBzDT/HZU8hKWGenbydg3ghUhoaBkWR3t/H4iUtdlzLXsLL64RU9zYWtqUOyjlZRAa4bN9MpBUiM1aEIfL1mSCBTMFZw23sHidtL34/PE0BxWolC7UsBO76etRege1azrzjSK35zEqc0+fSAcKrs8vULieCL1QzclIZvvxhFxK4vIE/ayebM8lMB876Z4wUgm6M3zZWiTnQ/KG3RP9QklkMv/vSOqVxMpAJUYClQPB/r89g5TD2Pvc5lfmg; 4:RPSEDRkeY6MYSjoF5MsLx5gx1h3ZX2h2jV1Be0Kr6ZwnnfsHe/q1CW4PQp4tP53q8sR3GmPTQ13x1IFoecQA/nfkxt2sOMt0FXIFJIw11/9gpW0yhYXdfF/on3OTuLxfVNgUrFo0U22tbe4/tWca24WSkN1Js3EvJcytaGSuBPkfl93JqCTAXIq7dFH7cGJmHGIT2yxhxIkZGIbSxAEWXDUynXOfq1nFA4GdelAJJJrIrOw8hMpDqv+d68z6uSWXIRgvPiF7PkTQ20xSuggk7b9DnjG04BLNpgbltrIVL2OztUFXwEvtm7QTWzw93P9Y9tmEo3YCG4F/Yfso8RuFIEe2VqTWfxWtYZ2IisLhmPvebG/N690j3ZJTm2jC+TvNtVr4F3FpZkuOXKlAecNIHez4ZHIHFl4hIG9TG6h BsUU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001);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NAKLzjL57J7nOHY7cQ9utLrLzZQg4rKaeqk=; 20:ru5L6eauamg2nWkgX4iH/VbNbjj1sqKmcbl06otuecACom3cuPvyCdmMbiP/PvS6AwyEkY09jsauPuHpk2PUu463NWF148EkxOpbYaA/mbElzPByEkE+VUh/Def0rMV2J0ecqYuJbzyYUbrmYzUf2pklN3U6nY0nUoXkd1OglxuL5jA/57hLQ1mnfVD70snKHY9gN6sjw89huAdosY/iFta/jH7jcgjwSxnBSow6NZqhtzmsSJrAHUWcYeJH3DwN SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Dec 2015 08:56:22.0046 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.172]; Helo=[milsmgep11.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR02MB304 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The IRQ_POLL_F_SCHED bit is set as long as polling is ongoing. This means that irq_poll_sched() must proceed if this bit has not yet been set. Fixes: commit ea51190c0315 ("irq_poll: fold irq_poll_sched_prep into irq_poll_sched"). Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg --- lib/irq_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irq_poll.c b/lib/irq_poll.c index 2836620..836f7db 100644 --- a/lib/irq_poll.c +++ b/lib/irq_poll.c @@ -29,7 +29,7 @@ void irq_poll_sched(struct irq_poll *iop) if (test_bit(IRQ_POLL_F_DISABLE, &iop->state)) return; - if (!test_and_set_bit(IRQ_POLL_F_SCHED, &iop->state)) + if (test_and_set_bit(IRQ_POLL_F_SCHED, &iop->state)) return; local_irq_save(flags);