Message ID | 20180310021855.2707-1-shhuiw@foxmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> 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 8AD3960467 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 12 Mar 2018 09:24:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D3E228CB4 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 12 Mar 2018 09:24:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8215C28CBD; Mon, 12 Mar 2018 09:24:06 +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, FREEMAIL_FROM, 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 E729328CB4 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 12 Mar 2018 09:24:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CC9A380511; Mon, 12 Mar 2018 09:24:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A6D5617104; Mon, 12 Mar 2018 09:24:04 +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 7EC5A4CA9B; Mon, 12 Mar 2018 09:24:04 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2A2JVMQ014128 for <dm-devel@listman.util.phx.redhat.com>; Fri, 9 Mar 2018 21:19:32 -0500 Received: by smtp.corp.redhat.com (Postfix) id C714A9C07D; Sat, 10 Mar 2018 02:19:31 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.rdu2.redhat.com [10.11.55.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C0D8E6F9E8 for <dm-devel@redhat.com>; Sat, 10 Mar 2018 02:19:29 +0000 (UTC) Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6AA8B402277B for <dm-devel@redhat.com>; Sat, 10 Mar 2018 02:19:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1520648347; bh=KC7ymtHV+b/JSv34ogMTdXlj2sdcbd2iVUJ/RNcKZd4=; h=From:To:Subject:Date:Message-Id; b=p+JyYmAKaFKrJdhEaiDCrUrd8373J/yIMzWbYOTSe4ESugIGSV+xro9EyImBNEI1O y7HtrTP20fJdkaVm786Uu9DrMDTxXbMRfHA46cPsNgFIafEhHjsp8ZyGy2GSQEYNRA vGtZNQ1+SwPIv8j6z8rvaUh44JbZVs85+l1rMQn0= X-QQ-mid: esmtp27t1520648346typahh445 Received: from localhost.localdomain (unknown [221.220.251.39]) by esmtp4.qq.com (ESMTP) with id ; Sat, 10 Mar 2018 10:18:55 +0800 (CST) X-QQ-SSF: 01000000000000F0FF2003000000000 X-QQ-FEAT: vusB/7NFgTvtn/FVtTUwy2BZOC47esn25UC6Mzij9s5wdIQHJ3FmNcKw115dd 0SHrTJVuWV4TJZrkXUeciS/kvEXWqwidXHMA2YR1CvlKeHxNiNrgV3rJ9XLOzYmgfNGeB7C zZ6xKCEgsXUhGl7teLRmAwdx0XInczySZ0d/r2pGzE+L4UmNCbSJYbB+upud8tM8VJsJHSj SZNw1Wak06O258lEVtAWnv2CpiqwuC4NFAMUX9ZFRESW+lnzuPUbGNr6AjyPowKxxWmvzYK 5/KfPmGWvSLNBgLehOyLaIRVk= X-QQ-GoodBg: 0 From: Wang Sheng-Hui <shhuiw@foxmail.com> To: agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com Date: Sat, 10 Mar 2018 10:18:55 +0800 Message-Id: <20180310021855.2707-1-shhuiw@foxmail.com> X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:foxmail.com:bgforeign:bgforeign3 X-QQ-Bgrelay: 1 X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 207 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sat, 10 Mar 2018 02:19:22 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sat, 10 Mar 2018 02:19:22 +0000 (UTC) for IP:'18.194.254.142' DOMAIN:'smtpbgeu2.qq.com' HELO:'smtpbgeu2.qq.com' FROM:'shhuiw@foxmail.com' RCPT:'' X-RedHat-Spam-Score: -0.13 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 18.194.254.142 smtpbgeu2.qq.com 18.194.254.142 smtpbgeu2.qq.com <shhuiw@foxmail.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.55.7 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Mon, 12 Mar 2018 05:23:44 -0400 Subject: [dm-devel] [PATCH] dm-mpath: use DM_MAPIO_SUBMITTED instead of 0 in process_queued_bios X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 12 Mar 2018 09:24:05 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 7d3e572072f5..fae0b3b810d3 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -721,7 +721,7 @@ static void process_queued_bios(struct work_struct *work) case DM_MAPIO_REMAPPED: generic_make_request(bio); break; - case 0: + case DM_MAPIO_SUBMITTED: break; default: WARN_ONCE(true, "__multipath_map_bio() returned %d\n", r);
Use the macro DM_MAPIO_SUBMITTED instead of magic number 0 in dm-mpath.c/process_queued_bios. Signed-off-by: Wang Sheng-Hui <shhuiw@foxmail.com> --- drivers/md/dm-mpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)