Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp313933yba; Wed, 15 May 2019 01:40:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9F8k27Ek1Dd7mzBi8oXZv+5iQTSISB5dy+ql42oZYkaMfB0n6RSvhGdfmWB1n8Sca/S4C X-Received: by 2002:a17:902:be0e:: with SMTP id r14mr25080961pls.152.1557909614061; Wed, 15 May 2019 01:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557909614; cv=none; d=google.com; s=arc-20160816; b=0hw65MCFb54MICUzchjEeWq9fmy1lNsL1iMUO3AuBHXxsFxfJAkZR7fXAwy6K3ueqk MlcizqdPFpTLPovlQMe9kHhTdq5AE//E7NhMyrAY2v/wjvubma+eDVesMWP8N2sSb6em tLR7pDympkVjBpX1LLaPE2i9zWLUPwSBfqmSkzJCwUIFntoWFF92/TkoShQxF5trw30S wlOQEn1uSWq32bSI3HW+GeEmtp94HjwDeG3Yqc2u1dTj1RAxUPu6kbVdBOub5TsE7clg q1Suelw4jc5cJjdBjLJ7pCsftBzVizsx+94RdmGcCrjQdYr0cgGIRVmEoDn0ZryWPZ1l XUUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=LwJDAGbve15vlDYgOlwFsVsXGiCcKRyIKVqUUOu1aWs=; b=qublLN9yivS/RKmjLdVrtqQimGfRYu9s1jPHbKWYQzci88tEpUsvfYCqLFEeNUzQ2N KBvzJ7Xi8ZRVHIuqWijgtUqGpMfZ8qkK+sOd3Q8rNjwxgczL18VjoN3npQm3H2Af6/M2 3oUOdMvns42D9BRqnMINenIYk2V4xKTj+269nsUA8wb2kak45Ro4LtiYTxMx0/5Etwmw 1Aq4QudeSYhOlTVVWj5uQwTh68n+J4nk7Rn0oxHsE5uShDyY6aj8Q5C83zwY/zmufPkH LPcPXKDgwX6fGN02YiiDuIhwYwK41KnM12dWJcP6WYuRvZ+8yr1vnYGNnYj9muMNpG9O lCIw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si1558815pfb.153.2019.05.15.01.39.59; Wed, 15 May 2019 01:40:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726501AbfEOIi3 (ORCPT + 99 others); Wed, 15 May 2019 04:38:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:35728 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725933AbfEOIi2 (ORCPT ); Wed, 15 May 2019 04:38:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B52BAAF95; Wed, 15 May 2019 08:38:27 +0000 (UTC) Date: Wed, 15 May 2019 10:38:26 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: khlebnikov@yandex-team.ru Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, oleg@redhat.com Subject: Re: mm: use down_read_killable for locking mmap_sem in access_remote_vm Message-ID: <20190515083825.GJ13687@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="451BZW+OUuJBCAYj" Content-Disposition: inline In-Reply-To: <155790847881.2798.7160461383704600177.stgit@buzz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --451BZW+OUuJBCAYj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, making this holder of mmap_sem killable was for the reasons of /proc/... diagnostics was an idea I was pondeering too. However, I think the approach of pretending we read 0 bytes is not correct. The API would IMO need to be extended to allow pass a result such as EINTR to the end caller. Why do you think it's safe to return just 0? Michal --451BZW+OUuJBCAYj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+amhwRV4jZeXdUhoK2l36XSZ9y4FAlzbz/sACgkQK2l36XSZ 9y72Dw//WSCQl+uR7hQKCcZgc6M3EGW5FhKKiFTfagIYPeGFx8co6rAG2XFCBn89 PiCHJjcjY5BtRaCnLV/AmLbSGSj/j7aX0FIM/nKkP7z78HTrSBjkd30HIXV1Vig8 wQY4JGC5bK2rUkd/D5Fjjrg93wMvwRfyj3wZ6/dXObPU8tfbrbOTeD+JNFlk1WZf WitkTbX3mD/xC3P3ItZ9+mTRXK+0MCMu/Bazf90yDFRB2uXvA788CTGVzsqzyfpG vkZmBDTzT/jJJhYKd4gR4ecaQbD3zzZdJiz5AEZFGJFSpK6nwYXz9jarjIWP2T6e OSZ4mGj+RjL3YBk9sqNgHPXMMS6IQoIgbpjVxwQlNN+6sSfGVm4qVGLn5N+69LwR iQtCQSv2JS5afnWSaahWQsxzvmkE/6OC6Qs1D1EdclP7ph1PgrkV2NJ+0VVBZfRA m0VNzZ6APLLoPc7yGaBP36yw6pjgycrVQaDtgZa1hqf1bpLnoqwrSlUQTTN2475Q ig/ZEnDjlB/X85OkdEB26SLw5CtH35EL64DhfNU9l1dZ5Ygw5O4nOevkPwL2XC3F mtftFgxxtFN2zDqg3s5gz7K5AAef7jn9TySNze2l7OVFwfpd96b8SXfyPxRMOgcy aUFG3qyAdXEoPQHQPWtTrKsnhbu+qNCaIbhxZAL9j5iVKnHc/cA= =vcUI -----END PGP SIGNATURE----- --451BZW+OUuJBCAYj--