From patchwork Wed Apr 26 18:37:27 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: 9701855 X-Patchwork-Delegate: snitzer@redhat.com 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 159246032C for ; Wed, 26 Apr 2017 18:39:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0977E285F0 for ; Wed, 26 Apr 2017 18:39:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1BD7285F3; Wed, 26 Apr 2017 18:39:21 +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=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7A5B1285F0 for ; Wed, 26 Apr 2017 18:39:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4CD5026AC71; Wed, 26 Apr 2017 18:39:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4CD5026AC71 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=sandisk.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 4CD5026AC71 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="nOuu40fX" Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 225EC18693; Wed, 26 Apr 2017 18:39:20 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id CDC1718523C0; Wed, 26 Apr 2017 18:39:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v3QIdIxH015354 for ; Wed, 26 Apr 2017 14:39:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id F418C18106; Wed, 26 Apr 2017 18:39:18 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D5D0618107; Wed, 26 Apr 2017 18:39:13 +0000 (UTC) Received: from esa5.hgst.iphmx.com (unknown [216.71.153.144]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 31FE264062; Wed, 26 Apr 2017 18:38:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 31FE264062 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=sandisk.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=Bart.VanAssche@sandisk.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 31FE264062 X-IronPort-AV: E=Sophos;i="5.37,255,1488816000"; d="scan'208";a="13360493" Received: from mail-bl2nam02lp0083.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.83]) by ob1.hgst.iphmx.com with ESMTP; 27 Apr 2017 02:37:45 +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=UlRGIlEJvsZMJ8aGRXViXBUOX23k3ezfSK1qR12qGe0=; b=nOuu40fXbfz/ppzBzB4N+9xC4FBM/yZgH1XPvD/NGNwezinFyF4MoBbVYZBD9H+C9kHezg7uA0d0u6DFd0Xv+T4MLFgoiQgTdkNZoT42aHO019/j0e+ZpWrja/MdtLKPwhSp91MnVy4jk98vunFkdoW95s3uCF+13EmKKLvpXmA= Received: from DM2PR04CA039.namprd04.prod.outlook.com (10.141.154.157) by BN1PR04MB407.namprd04.prod.outlook.com (10.141.60.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Wed, 26 Apr 2017 18:37:42 +0000 Received: from CO1NAM04FT023.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::206) by DM2PR04CA039.outlook.office365.com (2a01:111:e400:243c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12 via Frontend Transport; Wed, 26 Apr 2017 18:37:42 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by CO1NAM04FT023.mail.protection.outlook.com (10.152.90.148) 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; Wed, 26 Apr 2017 18:37:41 +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 D8.1E.19026.2F8E0095; Wed, 26 Apr 2017 11:37:38 -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, 26 Apr 2017 11:37:32 -0700 X-AuditID: 0ac94371-41ba798000004a52-bd-5900e8f218a3 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id AA.6C.18148.CE8E0095; Wed, 26 Apr 2017 11:37:32 -0700 (PDT) From: Bart Van Assche To: Mike Snitzer Date: Wed, 26 Apr 2017 11:37:27 -0700 Message-ID: <20170426183728.10821-13-bart.vanassche@sandisk.com> In-Reply-To: <20170426183728.10821-1-bart.vanassche@sandisk.com> References: <20170426183728.10821-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKLMWRmVeSWpSXmKPExsXCddJ5ke6nFwyRBvdXy1rsfTeb1WLBm71s Fm0bvzI6MHu833eVzWP9lqssAUxRXDYpqTmZZalF+nYJXBmvTigW7BKquH3tHlMD4yH+LkZO DgkBE4lvDxrZQWwhgaVMEvceBXQxcgHZOxglVi2ZwwZTNGfVRyaIxGZGiZmfNjCCJNgEjCS+ vZ/J0sXIwSEioCpxa5oLSJhZI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lHol83vLHSWW4oxEQy3mouJEAAUJO3Co AQAA MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39450400003)(39840400002)(39400400002)(39410400002)(39850400002)(39860400002)(2980300002)(438002)(189002)(199003)(9170700003)(47776003)(50986999)(8936002)(53936002)(189998001)(76176999)(54906002)(4326008)(50466002)(50226002)(356003)(305945005)(8676002)(33646002)(81166006)(110136004)(77096006)(38730400002)(36756003)(48376002)(1076002)(2950100002)(86362001)(6916009)(106466001)(6666003)(2906002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR04MB407; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT023; 1:yEAxGELEEX3yofjzLGWhU/ritJcfMRbMBIONoLFe2nzWR+7rj8UvOl98RZd6MZcwQtXDK9SSpu0ldkOmgIriYWJlDMEEt4owaE0i9POojXrl0DwcgYODSoQH7yyWSsBVC/OeMvbrqCNt/qhWcE7MsOqO/1M3Q/wEynF8SUATsf0NCmJfgtQK/Ma9/OMebxcEnFCOd79s7UIboIqKuTabE73LDNqhn3acx+1PNzNcjl6+5PmKvKtPrrsd+nD7+CehmZSnylO4Ptphb9gbdff5pmHSypqe9NQVu/DFRqIHOu2BTJQfKd52XMg/6A/cBJbD5NUI/3a0bQt8lqZpqmA6R3ryYBzNytYMeKbY0kFkoDBPvhWwqFrfX7yeH+AU1rA6xqDXmqkEv/ex9TRGnULpN8+ZUWt0jJ12ZlySAFJUTEdyYhi4HBNBFSzDOoS+4MG5T6lqWTFC6hJP8O1cg5HyZO8Mdqu5xBauh+S6E4qMx/x6B+q+OQbNbpJv90d8SPBhPbl0aNyiChhlEXJ1VWF1e7IHs2LPPw7RWOMIuJzxKPQ= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 10e488b1-1244-4b76-4f29-08d48cd352d0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN1PR04MB407; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB407; 3:rROTPNb3sQYJVokserAyrUqWo8LrDWRAZOoIfnObY2EwbZzwisCNRYcjox4PYXyxzvCY1mdvToB5LUBqKahFEg2WwsJgys1Im4sFfW7qK2mA21PVHIw60QKuZ+ySM+YwsGXMz8TDadxamIXH/pmU4sPc0Aekvhw95/SVJgeZzeGP6of+jOqAql1/NIQ6KYf7LIzMYYY/JJ3Yth658+SWRFufN3kFRupY7EdKDGdE5frzqbf/4/NwhvUT6sXzro2FKAeuqDUKaiKbTQykbzPfuSD88D1BfNagaTf3ZqYjlHkv4Lx5D6Osd/HS+bGq2VNA23cwEZ9vM3MIhogjFDjoKvioGaU0mq2zKVzXAtOre+GpD1DtzSve7H+Q4zKX7V9Z8AauMeJy+nsYaQJ+c6cBIpOfQ8KY+sFUeYsIcsu6Nv7t0jpmahIsvjHMN+o378/jDaLHeyLZ0qiVtkjsn787KWaXmU9P7wwIs0PXoWsEXoSTCk/xDSK6J2GEdXGhOpDW X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB407; 25:sarhZLvg8q4u768DUGNH+kVC0sD6Gojd6AYGIFReEdpGTz0z0tdeL+UtdeXjbd2oCXjU316SlOHJstgyJNuJT0qsqc/cFpGXr/2947IRF4tFmrwGq7Pa0Xfn8GD+qr11zODEc4LnO4fapjNrPtfyWdoZEa93x9YQHFxcSIrycWyeIvQ8Ma/xCeFkxETwcpniTM5qbJ3S+Y39lDf8nxyeXX3UyBTFPB9CcWjMf5reGL1qjAkKQFzgZCqOp878LHwNqHl7llioUgPzLEeOnvPqaFrPrQsIMWz8NryzceBrghY3I8iMs884lc9Wt9AGHLi2HSR8i3e+L5o8eH5tuQzVkD3oViRAVWsVc94n/N1CT8eUqbgmgqfi5Bjk41ZVbcdJP0NgxIn2CWYuOCiXP/hb/zsNeBPEGuH8H1DMaN5DwUIrie2Hld5ALpcCYOznYlOkKa9Q7d+MsyIiQlJUQZd57Q==; 31:Aux9m8UUkocInHlFlbw2wcRxY63tgXZI3WKMHL0L1UKEtVACdQNtEp+7WQ8n4+cmuMH/lzJjViTpEhFEUSpYQxvWiA6WY0gQxkCgNOzszxMM+1fJIt2a8XJc6u4aTprB6ARqC7LlT1+FXzGaJ84j+JzorhCmy0T49wnyONY4cOSGedNzHrkuShclqLooxP7XRIkaTpdIxJWe6uIqGujVwTgwtvP2bFryBYbucHrhdlCEidrDaUQXJN7fMFjC3g4yBh5quwMB2aGfOxU7eqCMHg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB407; 20:nhpBYodaKRPsAuEwkLD6dBx0ZqOckzKq1rbREH4GsflrqBGsiQ7sobhOdaxUq3pDdO67cYS8CDnZewLd4dYafBluGqdLh1XFppTsFEFlBppO28ssgUsqJ3YKVh7PPN+kjQ5An0sWx4wO6UySaXIx52Fz+Gxkwj0/qItmyehvnTf2AczL3W4kLY7P+pLajr615po151Vkh7O+mnVSbvQDyouX6oNAFyijIawLJFvq35xOknO2k04j9Okx2hfxvyJX0gSa5ADq7BfEJ5oyTQdqH8Gx91bnMzjv4yQf6WABTy3QQmTLFP3GhhBGn+fPAyd+Zih3Kc8J704QKqyqANCKTJfkmumPXuOssFlDpWPoM0N0n0IcS3Y37EEIkYcd+6xP8B2ZDbQIariho/Y6mvPgpy+Z870TwU4b52neOqGH10ArIvmbH9IiGz+cduRFt4XbccM/lqFx0tErF17KKCSZqgU86OoaJwYKsapHBixxZGHGS7oJbJmSRKl/Qrmw43o5 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)(13018025)(13016025)(8121501046)(5005006)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:BN1PR04MB407; BCL:0; PCL:0; RULEID:; SRVR:BN1PR04MB407; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB407; 4:UhFPZTyY+bSbFoSGJSQrFKbyxoRS1E0B3OEXDsTbMIq3CANqTU9mOesrYDqVbepeOUZ9FIL+FmLSgSHM8EdqRIgzIa6+sIIwGJyv3nNVtsJN8SlaAB7hFYTzghtVUE/Pg9JyZjqszkieDENywdxcf/UdXCBMU7dj6D16Jx0EJCEblVAfFeWtkVeHI7znxS1MVswaGDUi2NyxOimugT4/YZdwWQxqtIpQbpRQI6S70gQ0DbHaTM1d1kzNAZZ+azRKXaD/sdzIOLEFYD9+Dkkh4Ioptwzj0IQZ1N3IfCdgFHVMQi3i0Xs3JKIb3xf7R+mHm7ahnBhRQfRYsWMt2YnZQTdOqWdKvgOud1rWGEMDJN6aF1csET8LJhxoswq1+0mSLsiNBY/iEtMgNeuLSNYcu+03JBJ9/jbTojHr+SmEWgtmSbaBrawY+5SQVTViMQZdKKglrXI3844pH1x8T5v+MdRYdevRQnGvIoqv1dfXKpEQYQQ0WgI9AxRjfaYxQdUqNxwuxItiab/Hni3JIsv2bl3qwbJUOJMEm0vJPlCWQm8dYiK8Pex/Y8ugPr1R8i029wwPnUTjb8lvAnCMfU7VpgMytHwXFhEd8/wbQXxLO4kWyzFJs8jUluXVGb4b8rHQsIf4Q6suxpIGjydsBTtoqHk9MuB1QmS8q4ax/aFN/dQrWZpHuQDTJVWp0f4hJkhzP/dwzzj1YG0aFrR1P3Yj5VG+6XvVRZF7H42y2sgUvA9FawJ+FX/jjWBhdXP0gwxM06u5yAjVpEbWYeq1aWKO32Vd40AhnaJMSSVOlHAxnMnyC6J5AFCUUUL2I2XU7oQQ X-Forefront-PRVS: 0289B6431E X-Microsoft-Exchange-Diagnost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amDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB407; 7:FzLyQC2prjaNciDg34X9VBHTptvyGBtDl/cL2EtcincYdw5qq90dknEu/dblIOyQulzldBu8BaYWCOwqOc3RZXbQyg7JHIQfhFd4g3hncnB4LxbDFu86CQ785ylL8Cz4nTQemYuwUEfvoLvVma6PdlgniyxPDO7mQveECvRGXi/TiK+AI+YTsXDQNFi59u+bMwij6quwYvaimLvlLhCaLPMNm4Z35nTKVNMS8xNj8iA3bMnnr1Pa4ROUiXK9Y+ciQgFzUGc2TZZg7JDnL22EyXu0d1mhy7KTCRo2zkky+oFGGEvQVIHo7sbt8RMjfUm/PC1xSJzPWWHhvXS6SutErA==; 20:lix+WfoyuWg+Eq61+aySxKjAftmB2pvl4s7yKF57IOAm+YLefLEKgPUg5fhGtUq9jIKdN7mHcb1qUaxpt2qx9Xb/ISab2lbsz4EKqWNm8tmKB+odMDwmFGTqUTFvrZSEO1zf6IASjsb7QVb8W7R/0rJ5/kHA4uIEDYtUunB58Rc= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2017 18:37:41.8926 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR04MB407 X-Greylist: Delayed for 110:56:16 by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 26 Apr 2017 18:38:44 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 26 Apr 2017 18:38:44 +0000 (UTC) for IP:'216.71.153.144' DOMAIN:'[216.71.153.144]' HELO:'esa5.hgst.iphmx.com' FROM:'Bart.VanAssche@sandisk.com' RCPT:'' X-RedHat-NoPTR: 216.71.153.144 has sent a message and has no valid PTR record X-RedHat-Spam-Score: 1.192 * (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, RDNS_NONE, SPF_PASS) 216.71.153.144 [216.71.153.144] 216.71.153.144 [216.71.153.144] X-Scanned-By: MIMEDefang 2.78 on 10.5.110.38 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: dm-devel@redhat.com Cc: Bart Van Assche , dm-devel@redhat.com, Hannes Reinecke Subject: [dm-devel] [PATCH 12/13] dm-mpath: Introduce assign_bit() X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 26 Apr 2017 18:39:21 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP This patch does not change any functionality but makes the code easier to read. Signed-off-by: Bart Van Assche Cc: Hannes Reinecke Reviewed-by: Hannes Reinecke --- drivers/md/dm-mpath.c | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 0eafe7a2070b..57b467207741 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -613,6 +613,14 @@ static void process_queued_bios(struct work_struct *work) blk_finish_plug(&plug); } +static void assign_bit(bool value, long nr, unsigned long *addr) +{ + if (value) + set_bit(nr, addr); + else + clear_bit(nr, addr); +} + /* * If we run out of usable paths, should we queue I/O or error it? */ @@ -622,23 +630,12 @@ static int queue_if_no_path(struct multipath *m, bool queue_if_no_path, unsigned long flags; spin_lock_irqsave(&m->lock, flags); - - if (save_old_value) { - if (test_bit(MPATHF_QUEUE_IF_NO_PATH, &m->flags)) - set_bit(MPATHF_SAVED_QUEUE_IF_NO_PATH, &m->flags); - else - clear_bit(MPATHF_SAVED_QUEUE_IF_NO_PATH, &m->flags); - } else { - if (queue_if_no_path) - set_bit(MPATHF_SAVED_QUEUE_IF_NO_PATH, &m->flags); - else - clear_bit(MPATHF_SAVED_QUEUE_IF_NO_PATH, &m->flags); - } - if (queue_if_no_path || dm_noflush_suspending(m->ti)) - set_bit(MPATHF_QUEUE_IF_NO_PATH, &m->flags); - else - clear_bit(MPATHF_QUEUE_IF_NO_PATH, &m->flags); - + assign_bit((save_old_value && + test_bit(MPATHF_QUEUE_IF_NO_PATH, &m->flags)) || + (!save_old_value && queue_if_no_path), + MPATHF_SAVED_QUEUE_IF_NO_PATH, &m->flags); + assign_bit(queue_if_no_path || dm_noflush_suspending(m->ti), + MPATHF_QUEUE_IF_NO_PATH, &m->flags); spin_unlock_irqrestore(&m->lock, flags); if (!queue_if_no_path) { @@ -1593,10 +1590,8 @@ static void multipath_resume(struct dm_target *ti) unsigned long flags; spin_lock_irqsave(&m->lock, flags); - if (test_bit(MPATHF_SAVED_QUEUE_IF_NO_PATH, &m->flags)) - set_bit(MPATHF_QUEUE_IF_NO_PATH, &m->flags); - else - clear_bit(MPATHF_QUEUE_IF_NO_PATH, &m->flags); + assign_bit(test_bit(MPATHF_SAVED_QUEUE_IF_NO_PATH, &m->flags), + MPATHF_QUEUE_IF_NO_PATH, &m->flags); spin_unlock_irqrestore(&m->lock, flags); }