Message ID | 20230519190934.339332-3-joel@joelfernandes.org (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 E0661C7EE29 for <linux-mm@archiver.kernel.org>; Fri, 19 May 2023 19:09:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3A099900005; Fri, 19 May 2023 15:09:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3500D900003; Fri, 19 May 2023 15:09:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1F2B1900005; Fri, 19 May 2023 15:09:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 10F7A900003 for <linux-mm@kvack.org>; Fri, 19 May 2023 15:09:51 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id CE340160956 for <linux-mm@kvack.org>; Fri, 19 May 2023 19:09:50 +0000 (UTC) X-FDA: 80807944140.21.0792D54 Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) by imf19.hostedemail.com (Postfix) with ESMTP id 01C551A000F for <linux-mm@kvack.org>; Fri, 19 May 2023 19:09:48 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=joelfernandes.org header.s=google header.b=o7UU9iUh; spf=pass (imf19.hostedemail.com: domain of joel@joelfernandes.org designates 209.85.222.43 as permitted sender) smtp.mailfrom=joel@joelfernandes.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684523389; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=t64UzVHVroabp76Xd4g1LLeTmZtqX+n8nvVYbfjxh90=; b=rq9yLqi77Ohy6NNIt9nJhfyPKhsEWwnsh3LhG3gNlpl/NptyhTp86wIZwsnyS1iy2LA1IO ncWaHeAzS1UFA9vB+blY9xW6EVYxfKscvsQwQKKakT0eVPzs9K40lS39sVo8FvxTFqF70k XN7mk5c0B9/SfQ7yz6J64f49tOr3208= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=joelfernandes.org header.s=google header.b=o7UU9iUh; spf=pass (imf19.hostedemail.com: domain of joel@joelfernandes.org designates 209.85.222.43 as permitted sender) smtp.mailfrom=joel@joelfernandes.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684523389; a=rsa-sha256; cv=none; b=fWFHEC60RjwgiuuGKlKq3lC4dL9qriJ4HhER13cAbqd2h7DGz37gUjDvXkyeBcsT1fgdYm 8oSybdei6wM+03Xgp4xrvMoDJKRO7xovuqMHccWVVSkQ/nXmcxqI9XVI4nRW+qExjusCkl 7gNHG4LBY2zdaHgcts4K4vY0IaHGJq8= Received: by mail-ua1-f43.google.com with SMTP id a1e0cc1a2514c-783e5f8717aso1200641241.2 for <linux-mm@kvack.org>; Fri, 19 May 2023 12:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1684523388; x=1687115388; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=t64UzVHVroabp76Xd4g1LLeTmZtqX+n8nvVYbfjxh90=; b=o7UU9iUhAbrwB44BtKTmc5RQ8dUPaFjHnnyhvbFZd+1u585u1S76A7OrnTd4nASMLC ZkUXlYY0ZOkyICYNTcwic2MeSK8V8ncKEVmdi5sB8vbXKubDEMtEYecQ/rgSsn59s9aX 4//vGzJMsIiFGeko/yn1WZd6ewTT2Ke489JRE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684523388; x=1687115388; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t64UzVHVroabp76Xd4g1LLeTmZtqX+n8nvVYbfjxh90=; b=TFslWLCKVH1DfvONY2CJLAoqyqZrD+rWiJ6qA3xSMgkdbQnl298YTWmckFi5NGFNVs 5q9dDm4AgpV3K6L/PvhhJ/c0XlVOysLobmJ/hBST3362lBYTe492EPVY+K8PTEamJg7a tQZwXvqIwZheWTdRObGwDIEDh1zmZQByebidjZcdVzGAj7Ckk3gxq0ww9EJzJH3or2ad 4gy+KiYff8Sd54u0xMfFRFlfRXdJi8ZBZ+J93lqz091qUW7uTFZCXbpPMRtnehWW4Rep faUrbceo2ZI87ihTX8lFL3ibWbM5/74ev73CtcMx7yWzTR/OU2pE2xWVoLGub4qsMkig Ab+w== X-Gm-Message-State: AC+VfDz812bJ/WUX0T6hFaClV0ua7iFaPN7sLELF4g2lUCtjXBlLGy1J sIXm9eCse6RQqIDX7lYrNq3sbQ== X-Google-Smtp-Source: ACHHUZ4jFcbT1ve1tL/ufSb7el3GoyODcR910N727rMH2QSU4iGxgxnP0MXarC1z3MztdTo718x5vw== X-Received: by 2002:a67:f050:0:b0:435:f378:8ee8 with SMTP id q16-20020a67f050000000b00435f3788ee8mr163030vsm.26.1684523388002; Fri, 19 May 2023 12:09:48 -0700 (PDT) Received: from joelboxx.c.googlers.com.com (129.239.188.35.bc.googleusercontent.com. [35.188.239.129]) by smtp.gmail.com with ESMTPSA id q20-20020ae9e414000000b0074e1ee30478sm1317611qkc.37.2023.05.19.12.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 12:09:47 -0700 (PDT) From: "Joel Fernandes (Google)" <joel@joelfernandes.org> To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" <joel@joelfernandes.org>, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, Shuah Khan <shuah@kernel.org>, Vlastimil Babka <vbabka@suse.cz>, Michal Hocko <mhocko@suse.com>, Linus Torvalds <torvalds@linux-foundation.org>, Lorenzo Stoakes <lstoakes@gmail.com>, Kirill A Shutemov <kirill@shutemov.name>, "Liam R. Howlett" <liam.howlett@oracle.com>, "Paul E. McKenney" <paulmck@kernel.org>, Suren Baghdasaryan <surenb@google.com> Subject: [PATCH v2 2/4] selftests: mm: Fix failure case when new remap region was not found Date: Fri, 19 May 2023 19:09:32 +0000 Message-ID: <20230519190934.339332-3-joel@joelfernandes.org> X-Mailer: git-send-email 2.40.1.698.g37aff9b760-goog In-Reply-To: <20230519190934.339332-1-joel@joelfernandes.org> References: <20230519190934.339332-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 01C551A000F X-Rspam-User: X-Stat-Signature: m5ezo45oywwcsgobh4amaqn6qj6mi78k X-Rspamd-Server: rspam01 X-HE-Tag: 1684523388-435170 X-HE-Meta: U2FsdGVkX18biORJ5meCM6KcKKdu/ynLbIY7mqjp6PuJl4dQ/ELp9Ofg2I8HWkrPh8XSB0yRbCKm+tpiGb7fe+w7URSn/5sKMx03TTqCYrTB07JZqj5fhUs6MthcwjNxgO9KQFJIGEgFpQ1NJlws4DJGknj1uvzdiu3dFg9nwJwA+XrzVdo9D368hcYhqJJTyzW2cw+0O9SblyGKtYbb4HEp0rxbVT1zD8sM3smj2wrDKMvcdtbQJCHtGSSUX/M9itV1N+3acNduk1ZPY0naLXzz7h+LR80XBDkIo0qfMLVAllmT6sP7BK5mC1Cfqz+TuTw3Faxl3sS4xeYs1p5P6zcKwKN//O87OLNl8ZgNUo7heL758aQUNEi1wPbnB9JNboAMWnEUqXY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mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Optimize mremap during mutual alignment within PMD
|
expand
|
diff --git a/tools/testing/selftests/mm/mremap_test.c b/tools/testing/selftests/mm/mremap_test.c index 5c3773de9f0f..6822d657f589 100644 --- a/tools/testing/selftests/mm/mremap_test.c +++ b/tools/testing/selftests/mm/mremap_test.c @@ -316,7 +316,7 @@ static long long remap_region(struct config c, unsigned int threshold_mb, if (addr + c.dest_alignment < addr) { ksft_print_msg("Couldn't find a valid region to remap to\n"); ret = -1; - goto out; + goto clean_up_src; } addr += c.dest_alignment; }
When a valid remap region could not be found, the source mapping is not cleaned up. Fix the goto statement such that the clean up happens. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> --- tools/testing/selftests/mm/mremap_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)