Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754661AbaJCU4g (ORCPT ); Fri, 3 Oct 2014 16:56:36 -0400 Received: from mx5-phx2.redhat.com ([209.132.183.37]:35526 "EHLO mx5-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbaJCU4c (ORCPT ); Fri, 3 Oct 2014 16:56:32 -0400 Date: Fri, 3 Oct 2014 16:55:50 -0400 (EDT) From: Paolo Bonzini To: Linus Torvalds Cc: Andrea Arcangeli , qemu-devel@nongnu.org, KVM list , Linux Kernel Mailing List , linux-mm , Linux API , Andres Lagar-Cavilla , Dave Hansen , Rik van Riel , Mel Gorman , Andy Lutomirski , Andrew Morton , Sasha Levin , Hugh Dickins , Peter Feiner , "\\Dr. David Alan Gilbert" , Christopher Covington , Johannes Weiner , Android Kernel Team , Robert Love , Dmitry Adamushko , Neil Brown , Mike Hommey , Taras Glek , Jan Kara , KOSAKI Motohiro , Michel Lespinasse , Minchan Kim , Keith Packard , "Huangpeng (Peter)" , Isaku Yamahata , Anthony Liguori , Stefan Hajnoczi , Wenchao Xia , Andrew Jones , Juan Quintela Message-ID: <357882411.58338047.1412369750145.JavaMail.zimbra@redhat.com> In-Reply-To: References: <1412356087-16115-1-git-send-email-aarcange@redhat.com> <1412356087-16115-2-git-send-email-aarcange@redhat.com> Subject: Re: [PATCH 01/17] mm: gup: add FOLL_TRIED MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.5.82.6] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF32 (Linux)/8.0.6_GA_5922) Thread-Topic: add FOLL_TRIED Thread-Index: k0u9A3OccmrkZ0VNl5ADbarBwbJGOw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > This needs more explanation than that one-liner comment. Make the > commit message explain why the new FOLL_TRIED flag exists. This patch actually is extracted from a 3.18 commit in the KVM tree, https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/?h=next&id=234b239b. Here is how that patch uses the flag: /* * The previous call has now waited on the IO. Now we can * retry and complete. Pass TRIED to ensure we do not re * schedule async IO (see e.g. filemap_fault). */ down_read(&mm->mmap_sem); npages = __get_user_pages(tsk, mm, addr, 1, flags | FOLL_TRIED, pagep, NULL, NULL); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/