Message ID | 079f7b0b129f4fbc86d5f5ee8795fd1b@h3c.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81783C27C4F for <linux-mm@archiver.kernel.org>; Mon, 1 Jul 2024 01:47:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0F9C86B0096; Sun, 30 Jun 2024 21:47:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0A94F6B0098; Sun, 30 Jun 2024 21:47:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EB2926B0099; Sun, 30 Jun 2024 21:47:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id CCE456B0096 for <linux-mm@kvack.org>; Sun, 30 Jun 2024 21:47:05 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 6E7384181F for <linux-mm@kvack.org>; Mon, 1 Jul 2024 01:47:05 +0000 (UTC) X-FDA: 82289495610.25.0706E67 Received: from h3cspam02-ex.h3c.com (smtp.h3c.com [60.191.123.50]) by imf16.hostedemail.com (Postfix) with ESMTP id 2F8EE18000F for <linux-mm@kvack.org>; Mon, 1 Jul 2024 01:47:01 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; spf=pass (imf16.hostedemail.com: domain of zhang.chunA@h3c.com designates 60.191.123.50 as permitted sender) smtp.mailfrom=zhang.chunA@h3c.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719798412; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=K+txfgIBDiC5EBu9Tyu6qcr21MebyAoTXTIWB1FfFmA=; b=tIxOiZv8yEySCGV1mcB9wJX7gTigBIxOTqXbbNWBK3nv7lxc0oTcz0vwjTcnGkkqBjKbhp 9CyaT5Vz/2gvbyXF4xnhIDl/P9hFR+M6Rbi0gv8/jA0L8KiS2fo8ffiTfuRksj7x0lJNn3 YQRWInxk6Q7Qz8gFVZpd8JvHYQs9+T4= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; spf=pass (imf16.hostedemail.com: domain of zhang.chunA@h3c.com designates 60.191.123.50 as permitted sender) smtp.mailfrom=zhang.chunA@h3c.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719798412; a=rsa-sha256; cv=none; b=NqAyyAhcaxTamiyvi7fhOu+P5nCs+j88tbe49WoAwpFNJqg38DLh5t4RKlgT5sp2zI1IWK 9bn/dr+jGInhnLYF+Yq736vrrb45h48FE7Hu9p+Emv6+Az+hj/EgBsHNzCKdCJcgjX9XUI ifp+m50ANlWJ3e2fDXLjn8ZVoI51RJs= Received: from mail.maildlp.com ([172.25.15.154]) by h3cspam02-ex.h3c.com with ESMTP id 4611jvHJ024589; Mon, 1 Jul 2024 09:45:57 +0800 (GMT-8) (envelope-from zhang.chunA@h3c.com) Received: from DAG6EX11-BJD.srv.huawei-3com.com (unknown [10.153.34.13]) by mail.maildlp.com (Postfix) with ESMTP id 07A032004BBD; Mon, 1 Jul 2024 09:49:59 +0800 (CST) Received: from DAG6EX09-BJD.srv.huawei-3com.com (10.153.34.11) by DAG6EX11-BJD.srv.huawei-3com.com (10.153.34.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.27; Mon, 1 Jul 2024 09:45:58 +0800 Received: from DAG6EX09-BJD.srv.huawei-3com.com ([fe80::bdc5:ad7:2347:12a5]) by DAG6EX09-BJD.srv.huawei-3com.com ([fe80::bdc5:ad7:2347:12a5%4]) with mapi id 15.02.1258.027; Mon, 1 Jul 2024 09:45:58 +0800 From: Zhangchun <zhang.chunA@h3c.com> To: "shaohaojize@126.com" <shaohaojize@126.com>, "akpm@linux-foundation.org" <akpm@linux-foundation.org>, "linux-mm@kvack.org" <linux-mm@kvack.org> CC: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Jiaoxupo <jiaoxupo@h3c.com>, Bailin <berlin@h3c.com>, Zhangzhansheng <zhang.zhansheng@h3c.com>, "linux-mm@kvack.org" <linux-mm@kvack.org>, wangyu <wang.yuI@h3c.com> Subject: [PATCH] mm: fix kmap_high deadlock Thread-Topic: [PATCH] mm: fix kmap_high deadlock Thread-Index: AdrLWGWcTXIJ41leRoK9JQLjgSju3w== Date: Mon, 1 Jul 2024 01:45:57 +0000 Message-ID: <079f7b0b129f4fbc86d5f5ee8795fd1b@h3c.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.135.168.35] x-sender-location: DAG2 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-DNSRBL: X-MAIL: h3cspam02-ex.h3c.com 4611jvHJ024589 X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 2F8EE18000F X-Stat-Signature: 3ountnp3pcqs8foqrn555s83n87rt6qa X-Rspam-User: X-HE-Tag: 1719798421-857645 X-HE-Meta: U2FsdGVkX1/7Sf+dS8UbMJvz1+cJO630vlGpuosjesDiQHQ5ecfnvekRvSiBTr8spDI+SnQ/bxYCfEPW3iBPtqfQjMAPBcisU12MGiJt0EkHAdQFbKsJPkXSpe6L1LqB/DP4M/JWvEOfL4WzhcosM1+/sepjo+AiyOqZDWGd2Myu3CWypsnx61a7pAi/VixE3/UgP9ICJvLvm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i5E831jIp/zIIE1oZGOtPZA+3j9SKMaWtEs1YKzj+n8A0zmZRQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: fix kmap_high deadlock
|
expand
|
diff --git a/mm/highmem.c b/mm/highmem.c index bd48ba445dd4..12d20e551579 100644 --- a/mm/highmem.c +++ b/mm/highmem.c @@ -221,7 +221,9 @@ static void flush_all_zero_pkmaps(void) need_flush = 1; } if (need_flush) +spin_unlock(&kmap_lock); flush_tlb_kernel_range(PKMAP_ADDR(0), PKMAP_ADDR(LAST_PKMAP)); +spin_lock(&kmap_lock); } void __kmap_flush_unused(void)