From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 01/17] mm: gup: add FOLL_TRIED Date: Fri, 3 Oct 2014 16:55:50 -0400 (EDT) Message-ID: <357882411.58338047.1412369750145.JavaMail.zimbra@redhat.com> References: <1412356087-16115-1-git-send-email-aarcange@redhat.com> <1412356087-16115-2-git-send-email-aarcange@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: owner-linux-mm@kvack.org 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 List-Id: linux-api@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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org