Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp646625pxb; Thu, 19 Nov 2020 10:08:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwj2V6Gkp+o4jnjVCDZwV5KviV81Zny2fWFz0kmic5wuW0kwM4LNXKtnwZhko0Tts9F4Lcx X-Received: by 2002:a50:aa84:: with SMTP id q4mr33605021edc.331.1605809295882; Thu, 19 Nov 2020 10:08:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605809295; cv=none; d=google.com; s=arc-20160816; b=l/MLL1JcG63xvXw6sXj7L7nF7PYkVIX4ZXp25ivFv1NU46XN/QUU5uM5Xrx9hjuzkL X6FxAPuUPYHeQRrp1aURIlqAIqVUHR6W1JUTq1vhvEFWH2y5axxD4NfvLvgUpE1vy0Xt 2UGSZ3bVnjVGFkEfATi2UTZF5UFr0fBeonHnJtZ+wEt601pYyLPYy1x7j8GFCv7kQoV4 R6hJanAgRzHThHUIa53hCDDTyDYySLHoo+6L43nC9+PTqJyKEGVE+ENKJ3tjuLgcAP+f yTsce3o6+eCgqM3Nkk/sEQKc1ibe4yWOwu2YPpa64yxWUgcee2PqQV3Y8r0s/EQ7XJU6 9LTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/T+8AFyLl36EP0BJCpl/7y0TJdJH2AjtO1rZ2kV15Ho=; b=s5fNDfexIgEuOVXQLKZ4Bb5c1qPUwc8uuYLjjrZeBnzS/SF9qX8k3w0rHOHnvuAybA HM5q0V2S96wKOCqQ7ZrhvSDDbYekNd/nB00Sg8HVu9/lLCVFwRov5tz2r5eytisI+Gk3 q1TfDe/9xkBS/v37gTFq5N2KY/oICpaU78jsNoRVtCEZ3SbRfRgd6rIbONI0UbKqm4+I lfgsCXZxm97lFe8o1OjvYhzx+ofrmZeB4EjucCLxR6js8sikvgwdyRQm2HqUJYWGt0GW Ste3XJ5PwkITk7h5CgYcRdHZ0qx9WiZcgaAzi5t78qmOYMYV2QQ9MvnLU4Lfw0m3SI1B 8kFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=dp022ZLC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si221228eje.744.2020.11.19.10.07.48; Thu, 19 Nov 2020 10:08:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=dp022ZLC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729675AbgKSSDT (ORCPT + 99 others); Thu, 19 Nov 2020 13:03:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728880AbgKSSDS (ORCPT ); Thu, 19 Nov 2020 13:03:18 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13F13C0613CF; Thu, 19 Nov 2020 10:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/T+8AFyLl36EP0BJCpl/7y0TJdJH2AjtO1rZ2kV15Ho=; b=dp022ZLCgTAUhuPA52+TqG9Dq8 pT8vqGrYW1pWTS8qo2oRay9oXZ3bZQ4RTr3pMkcdUlYXPGyf4w0od2HZRkMFimWQ9hGdFcFdWf0PI 3BmJkKNKOTLfBYRmKt1HYZa6293WVZUtSLdP0SOKMqyoBHesPqyyV0T23Jo3KISkOuiOHumMU0rLs 6Nmtusy6xH/OnEdqZ0UfaydbgXXN0w3sJBd8/HOUzJUW7rAvuWskRYw/ZDNeB9kux4iUjCpHcKYjI tYK8CydDWwAPscox0LN28xB3z9tAVH4Ngupja5uOw3XUgkegiTTMC8iVOug8Jz1Sf4BTL+TD9tdwp QH06PwFA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfoH5-0006S6-Qy; Thu, 19 Nov 2020 18:03:15 +0000 Date: Thu, 19 Nov 2020 18:03:15 +0000 From: Christoph Hellwig To: Michal Kubecek Cc: Alexander Viro , linux-fsdevel@vger.kernel.org, Jens Axboe , Christoph Hellwig , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] eventfd: convert to ->write_iter() Message-ID: <20201119180315.GB24054@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 19, 2020 at 07:00:19PM +0100, Michal Kubecek wrote: > While eventfd ->read() callback was replaced by ->read_iter() recently by > commit 12aceb89b0bc ("eventfd: convert to f_op->read_iter()"), ->write() > was not replaced. > > Convert also ->write() to ->write_iter() to make the interface more > consistent and allow non-blocking writes from e.g. io_uring. Also > reorganize the code and return value handling in a similar way as it was > done in eventfd_read(). But this patch does not allow non-blocking writes. I'm really suspicious as you're obviously trying to hide something from us.