Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4759439ybi; Mon, 15 Jul 2019 14:24:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2SpqgJMFBWnR/pwbS1ViuKHbY3ZB8ftuEceLsT0Jl1du2aiXJ070FG3BHxXcBhr/pUCoO X-Received: by 2002:a17:90b:8cd:: with SMTP id ds13mr29926219pjb.141.1563225886056; Mon, 15 Jul 2019 14:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563225886; cv=none; d=google.com; s=arc-20160816; b=vbHePD7HHrZGKu/gutut18IJEfZMNbbo/ovE93Ghmb/v+ZVQ2cnnf6bTUUII6i/zV7 MCObZOPvASEs4+VvSsUxijft6pddH2mCwwWZybNjgaSFUnhD84Td9wrYdrqnHQuHWfCz 7RWHUYMYTJDL2Kk5WOmt1weT4J4wAOLCixPlKfFyVrqeeGLDZR3oMovLvJM0omH0DFWm H83lT4Jp3tJchuATYcdOvb3IAHY7UfL8/gB72DaY8p9MPUfWwrc45cIIzf8W16rJNffQ bBunRDKmnf4Ndj8WRjy9A+eTw2agAaj8V8ftneQkUdS/RxZeWLClChTKZe/Q4wfKZ04I CjLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mdOTdZc5CyeYXsr7PKqimgFx+Tc5tMirB8c0EaxZfps=; b=yJiW9zA+h2fp218upggAufJdd/OJUpBgFaLOSj7UI5yiqOnl0CwuX56jf4XIfupkwP nOUkUCI+KUHGiXBFWZ2Sea1zI7vIx2xTT/9EKcJs40/0+jBDTpXlcKRkbEjWwCkSJOWF s9ZEK6W3WvUHiT1j7+ZpDaQG+xVJeOGMm4XFVcbHXPgxOKu3EWiMAE3met33wS0KV30e o3BxB+6CbljOACr30ZMuqbuN96zCw3LqsGHs9BgkI+sg+oAbcnT6MSS7+OLjH30pE7H/ nZzzwCtuOle6gMKL+NxbDdoL96LKO4cxb6e5S9zSXRh3ckKBXgwbUXeh39xcnPGgT8S6 g3+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eJokrS+q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13si17373356pgj.205.2019.07.15.14.24.30; Mon, 15 Jul 2019 14:24:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eJokrS+q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732227AbfGOVWA (ORCPT + 99 others); Mon, 15 Jul 2019 17:22:00 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:40273 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730076AbfGOVWA (ORCPT ); Mon, 15 Jul 2019 17:22:00 -0400 Received: by mail-io1-f67.google.com with SMTP id h6so36495316iom.7 for ; Mon, 15 Jul 2019 14:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mdOTdZc5CyeYXsr7PKqimgFx+Tc5tMirB8c0EaxZfps=; b=eJokrS+qweBYwEYADF8KXz0DydkvuxL7otsgtyRyCanPQKsKOfn3u/uDhYyLSBfVwa Q5MQRIquyye74WtDNDemfSmWLMYiTpUK1MhSsguWyGjTy8Pcgvoa9UUCOSFxzt1qDVQX XZ9seouy0h2ch6g7KFchGKAjF7seWmOZBzX3DijQpcGtF2UdWlgoiMqDlawVCpGm8GVw qcO7104wiEL4VfTuYGIjBmyZdY0xfTkyCO9mlQ9YWeRqBzFdRYpjJ0G1udbNEzzJnSw7 BAubZPVq3+P/tsVOum40eTx/KfqXNii6z5xFsNKLDrfnUU4gAP0OJ9LUtLq2mEJ6j+/h YwBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mdOTdZc5CyeYXsr7PKqimgFx+Tc5tMirB8c0EaxZfps=; b=iCe3h827yqVZd+8TbSF/OjljuRPU5FQ2n4hVgE2K2Cl+j90Hhk9hgNlpmwRVlfDfOX eNyxZ7+HU0NCTZm2OKOiEglLWpUfA+bpf98lMKsHlgGEORyVLVfgtq3Kn9X6XdsM1ri1 vkm/9APY5HqE+cijj1cpKwNAD94kxyTRjFag/ya+1mjic0DQtazM2rrcnfWbTMvy6gPV 28VLmFrtlT3J9nXPJsnhEKVcDrMi9CtUHnMR7X3b2S3/SYaFws0TcjKTZIdHKDMrqLRq lksNnVHIp7RI8P1jhjpxpoB8PLD+A+dF3Tms692HFc1dMJqU0xq0dMT3+/kONJ48f+xI nJeQ== X-Gm-Message-State: APjAAAVxDII5B9n9NVqw/h7EXWMnPm02ICrl6ABPntBgErpbXPptvwQR 4KLNcIG02+0fppMY+xAPjhfXD53TJK64V71jmzUoOQ== X-Received: by 2002:a5e:9e03:: with SMTP id i3mr26607453ioq.66.1563225719176; Mon, 15 Jul 2019 14:21:59 -0700 (PDT) MIME-Version: 1.0 References: <20190715164705.220693-1-henryburns@google.com> In-Reply-To: From: Henry Burns Date: Mon, 15 Jul 2019 14:21:23 -0700 Message-ID: Subject: Re: [PATCH] mm/z3fold.c: Reinitialize zhdr structs after migration To: Vitaly Wool Cc: Andrew Morton , Vitaly Vul , Shakeel Butt , Jonathan Adams , Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry Vitaly, I had the wrong impression from your email that INIT_LIST_HEAD() was being ensured directly in migrate and got confused. (I thought you were saying it happened through the call to do_compact_page() queued). That being said, I don't see where in migrate new_zhdr->buddy is being checked. We do check for new_zhdr.work with if (work_pending(&zhdr->work)) { ... } Is that what you were referring to?