Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2701144imb; Mon, 4 Mar 2019 11:48:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxzXpxD/i9f5iuf4q1R5tdYk/AQflFX1TkL/k2KsZ6Gl0XjAbielawC8ogOsjl7j1k/1lNM X-Received: by 2002:a17:902:d698:: with SMTP id v24mr4765168ply.331.1551728900645; Mon, 04 Mar 2019 11:48:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551728900; cv=none; d=google.com; s=arc-20160816; b=eNklzpuPe0FXjVVG86gzE/uovLrad3gOlBB0eaapLemGH01luGgPr41FWsq+xzx4vz 6NhchifHJASBiBOXX5bedcstc53Sn/ljDzZhew+B8/yh3Lxq7juBILf0znr8rGKH2Erd il9pnuIZc8eKvt3/MP57MqfLqNRGMJ1aK/nI6FzK0k8/gRNr8xsUSvx3mcQ1qAr7pOdF FX05d4QT/gMYGJXmdcSFRq+vxLMyfKSuRvvvx0UxquFg1fYmRab+a/TB78JSBjJDE/mz fUh6Rhfe+PYOwjG5SXNt/emPalkTuE356fWAaQ1hbumFQoyDMN1Mf/yuKaaD7q12yz2F H4tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Xmz5CLW0FSy25OQrcpPjEI+jhUMsvf19y6/jwFDBJlQ=; b=X8ZPC8wfdFx0NT6Tbv4JEcfbdBkfbcg3JjTpyVrj166EvzeTIxMTsqAeERqc5p1PvZ O106iApmZhlllbPPThJMTD9K/g9d8NCepcH2pL06+V2R9KGrAWpYIOGIzhtGk0cr1GX2 HKr4r0ZFToY6KTdraDk6kexeYuBoDxyEMh3XD3tb6rLClKxpymR8rrcDghPGL/6Yk32T ivKOY8DXzTs4rHg/x05wKp9i6E+IrePo897xcxak8LAjiN7+JfwPyeHOUOfcWXsf/XcS IPbeIXoFdGEy7aJMCA+9dtUI847ITON1fazAEXnDHnYQAcNzoneLInSkvF94nIs2hlnQ Y+oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sQWEo9K1; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si3944612pgd.176.2019.03.04.11.48.05; Mon, 04 Mar 2019 11:48:20 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=sQWEo9K1; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726180AbfCDTqv (ORCPT + 99 others); Mon, 4 Mar 2019 14:46:51 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46515 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbfCDTqv (ORCPT ); Mon, 4 Mar 2019 14:46:51 -0500 Received: by mail-pg1-f196.google.com with SMTP id 196so3793124pgf.13; Mon, 04 Mar 2019 11:46:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xmz5CLW0FSy25OQrcpPjEI+jhUMsvf19y6/jwFDBJlQ=; b=sQWEo9K1CGxltrMpEXO2LIK894eOWnmM8qXH1cQ+A8sgxCaq8NFdhDnAbfI+RFxqit ROUCK8A6X/kbviOJ6RZLIQEKMqb5Lr5qOi7NnkoRBAj+dcJcv1MI+Eqw0e1K7TAxXu79 GBsuV/VhOEaScy5T55Ed8fR6FHDxwE6sUQxdlseSe9RJFX263YFbwRw6DLTXtcdlroYU F1o5tHsA2TAZt59Y3qqPq2PpGgtI0TW0ZMUd+xx/TuBQ0+IRskNaorJ6s2CffjVxgeC6 7Fdf6skIKB52MA/FRYZhA8aXy6jIQ646pH8q9J7yfVEEMTn6O49yHz+WkGp4bnzJt9xQ c64Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xmz5CLW0FSy25OQrcpPjEI+jhUMsvf19y6/jwFDBJlQ=; b=CYjU22po+F9Nm+il8OPr9xnKijVqJVLczYLURiUiWAavZuJ0XrHY06/1vJ4hW//Izx FRqQOQ3BUTYrkAvkzjmGROiUXX4/1/xwGJnnCge4guxmNn7kbE1+AM53aqAu0o7GKOIV jEwxQVLsym1AD2Q8tfw/0YU6iJ2g64gFf1X3TFx+IUEIZkDa8wPAaB/7jFccVX/HAvmJ ZKFo971IqoUb820kAVq1ve9b2pQmLt2HP2UJoKAdX5FKbIgBE+dnTTn5AsTqxyZT9gY8 XvXlLu79I+KPsKeZ9aB773KSBtGgYYPA1IibkyDzCifCxuz34IHvJwPJyY1tt9cvSHlW yH7A== X-Gm-Message-State: APjAAAWAUL8wna2P2toMI0PSILIyuDWIv1cohIDmw5Psy/jB6HFAoXBm gcEkhEzBC7AZRCnhgHi46Vk= X-Received: by 2002:a63:440d:: with SMTP id r13mr19917825pga.5.1551728810418; Mon, 04 Mar 2019 11:46:50 -0800 (PST) Received: from blueforge.nvidia.com (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id v15sm13499604pfa.75.2019.03.04.11.46.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 11:46:49 -0800 (PST) From: john.hubbard@gmail.com X-Google-Original-From: jhubbard@nvidia.com To: linux-mm@kvack.org Cc: Andrew Morton , LKML , John Hubbard , Leon Romanovsky , Ira Weiny , Jason Gunthorpe , Doug Ledford , linux-rdma@vger.kernel.org Subject: [PATCH v3 0/1] RDMA/umem: minor bug fix in error handling path Date: Mon, 4 Mar 2019 11:46:44 -0800 Message-Id: <20190304194645.10422-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Hubbard Hi, Ira Weiny alerted me to a couple of places where I'd missed a change from put_page() to put_user_page(), in my pending patchsets. But when I attempted to dive more deeply into that code, I ran into a bug in the cleanup code. Leon Romanovsky has confirmed that and requested this simplified patch to fix it, so here it is. Changes since v2: 1) Removed the part of the patch that tried to delete "dead code", because that code was dealing with huge pages. 2) Reverted the pr_*() line shortening, so as to keep this to only the minimal bug fix required. 3) Rebased to today's linux.git. Cc: Leon Romanovsky Cc: Ira Weiny Cc: Jason Gunthorpe Cc: Andrew Morton Cc: Doug Ledford Cc: linux-rdma@vger.kernel.org Cc: linux-mm@kvack.org John Hubbard (1): RDMA/umem: minor bug fix in error handling path drivers/infiniband/core/umem_odp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.21.0