Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1715935ioo; Mon, 23 May 2022 01:18:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPK8YeyDoHnnKq6+M4GypZ3zkzeCAf/bsw4EClWW7BpecADoVnnEbhIOteWVPuWC7iaycQ X-Received: by 2002:a17:902:c942:b0:161:e3aa:26fd with SMTP id i2-20020a170902c94200b00161e3aa26fdmr18631469pla.103.1653293891848; Mon, 23 May 2022 01:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653293891; cv=none; d=google.com; s=arc-20160816; b=n65giUzZTT5cp0wuJ6Qz4REBV2+V97Yzw09Sq9IsD0wqI/0nRS35el95KO/Y8jk6o6 wlq0/o2uSh5Avj/JqaozxzlWwgcr11D/DgK91/HR0raj1vqXF49tyT8bRQVDYozGV3Ua X1M7I5Rcqprsh/RqZYTwOeSUS8AKnqTON1uygumwsqM6x0kadXayVyt9k2MaJCD9lzEq fD+jdlDB4IGnvLm4Nv1Ph3TVEs6bSegQ2T2VTR5LyRuat51vnRGeA2D+hFdfObRT2FHB ExXm6GDRvMYzHjqZTGfhG8eDr7ddRADqFH7zA7SEpmM/kPlRhuUGMBIhFx3sx4qxU0aZ hzhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IbkmnGlcN/XcFPtYcz0cIGeL3AyDjITw0dhmfbvoZuI=; b=UqtvE9Q/qMJWjcihQDM0awl9VG5CHu0OJryu7BFcw3F0hMGW+rDfNZv59ACwsPD5dv 4QvvXjo7Ij0iast2DjAV1EnVtpnI07d13XraGJqDcIy7v/ux5nW4qx1hZFqjdUpi6eTW y+6xUXL90E3ox/fX0cHS9RtzAuUsX1MQ7J8r+RKs6mjK43DYvsrH7RIOhHHoAQY3R7yS 5eP+dGQezjWiGMcY2+fchuXaaP2zH61dzBICKNauoWaGcbp70ZF01uLH196K8z0tIk/u rPaMWQT4BJgwNRcavbMyahglz80KMwPNK3nGVTZtkCccPc5TSbiuNPCEZvkA0NCyZ/Lp cfgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=HtOl4YtW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id cn4-20020a17090af08400b001dfbc12d559si11759516pjb.155.2022.05.23.01.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:18:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=HtOl4YtW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D2B6E03E; Mon, 23 May 2022 00:20:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350393AbiETOip (ORCPT + 99 others); Fri, 20 May 2022 10:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345502AbiETOij (ORCPT ); Fri, 20 May 2022 10:38:39 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FB60170663 for ; Fri, 20 May 2022 07:38:38 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id y199so7924953pfb.9 for ; Fri, 20 May 2022 07:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=IbkmnGlcN/XcFPtYcz0cIGeL3AyDjITw0dhmfbvoZuI=; b=HtOl4YtWSIGRx/5+p9qcBzI6jHbYgZ99afRZitk1whsRZqHM0aT90+dKbIJ8ynS6FP 426GXioQ/JGq/VqMtuacLloUDulszRUBirKkfWJq4za3vQ9ij+/UHc8RE0wq04PRQqdw LYVYIGW+mFxuk16aCuQigob9YgYzBRUnIwKKQX02X7miaMea25rXyWl2Kgp8JuRZsf82 CXzBZD0i1UzayJyteJuBt+jYfmD1BKEHB7jK+2Qo1qEgfbMSvuABvwapyxEIn/DaRd+G YA2X1QK9PXVNxG6s/cRdMUt/Qdy3m2t1KyXsYC5qSkARAlvBo0DDQSn0a9NTtgSoiMZr L+ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=IbkmnGlcN/XcFPtYcz0cIGeL3AyDjITw0dhmfbvoZuI=; b=R1zVVgO6Ouo7TBS+pEQwQGrSOu4lK6VP/N7NN3cip233ndL+BI6QVzyYnvSE8yjgj0 6ej3/++8G6EQpJw4JTcAFojafTOSMdQAvD5JQfNfo8FHYiUrs+ufboPypdZ6we3oruvx lccOYlS20vMw9OXLAObASoLVeo6BALAHsF7RTEPw3ttJ33tIQRJAM+movMvorPR8JOxW nBmWpt4vW4Vr9m1YB+AeX+FK+fZLZDhyn8HJ+KxFPNuRE3taYvisR5Ni/mJiu3QMZWT4 5J4fWZJPrwHvBWD3sa4/jSAblI1WN3dIHPPMTKFB/5drVGyl9siQw8Zn1HJweylv4O54 IHow== X-Gm-Message-State: AOAM5320fMiPMmQnmzociwanKyqYnMnXg6Q+TfHnioHRhOIKjeJQli/L Smnye0bxF6G5DppLqOydODw6OQ== X-Received: by 2002:a05:6a00:2444:b0:4fd:db81:cbdd with SMTP id d4-20020a056a00244400b004fddb81cbddmr10594109pfj.32.1653057517977; Fri, 20 May 2022 07:38:37 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id jz10-20020a17090b14ca00b001df54afccb3sm1992213pjb.6.2022.05.20.07.38.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 May 2022 07:38:37 -0700 (PDT) Message-ID: Date: Fri, 20 May 2022 08:38:35 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] char/mem: only use {read,write}_iter, not the old {read,write} functions Content-Language: en-US To: "Jason A. Donenfeld" , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: Al Viro References: <20220520135030.166831-1-Jason@zx2c4.com> From: Jens Axboe In-Reply-To: <20220520135030.166831-1-Jason@zx2c4.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/22 7:50 AM, Jason A. Donenfeld wrote: > Currently mem.c implements both the {read,write}_iter functions and the > {read,write} functions. But with {read,write} going away at some point > in the future, and most kernel code made to prefer {read,write}_iter, > there's no point in keeping around the old code. Actually, this comment > in __kernel_read() indicates that having both might be plain wrong: > > /* > * Also fail if ->read_iter and ->read are both wired up as that > * implies very convoluted semantics. > */ > if (unlikely(!file->f_op->read_iter || file->f_op->read)) > return warn_unsupported(file, "read"); Nice, just another bit of wasted space due to not having clearly defined iter vs non-iter. Reviewed-by: Jens Axboe -- Jens Axboe