From owner-freebsd-arch@FreeBSD.ORG Wed May 6 17:16:17 2015 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2E080F44; Wed, 6 May 2015 17:16:17 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8AE9D1257; Wed, 6 May 2015 17:16:15 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.9/8.14.9) with ESMTP id t46HGBDN057648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 6 May 2015 20:16:11 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.9/8.14.9/Submit) id t46HGBFS057647; Wed, 6 May 2015 20:16:11 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 6 May 2015 20:16:11 +0300 From: Gleb Smirnoff To: Alan Cox Cc: kib@FreeBSD.org, alc@FreeBSD.org, arch@FreeBSD.org Subject: Re: more strict KPI for vm_pager_get_pages() Message-ID: <20150506171611.GF56147@glebius.int.ru> References: <20150430142408.GS546@nginx.com> <20150506114549.GS34544@FreeBSD.org> <554A4887.9080308@rice.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <554A4887.9080308@rice.edu> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2015 17:16:17 -0000 On Wed, May 06, 2015 at 11:59:51AM -0500, Alan Cox wrote: A> > Pagers are responsible to update the array of pages in A> > case if they replace pages in an object. All array entries A> > must be valid, if pager returns VM_PAGER_OK. A> > A> > Note: the only pager that replaces pages is sg_pager, and A> > it does that correctly. A> > A> A> No, look again, e.g., device_pager. Yes, now I see it, it goes trough cdev op. But it appears also to work correctly - it updates the page in the array. -- Totus tuus, Glebius.