From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C976259B41 for ; Tue, 2 Apr 2024 20:25:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712089531; cv=none; b=nZicmJQOD49PnIYsJWS1SqtjyMdldsVaAy+ZOASa3zRZrwDZ00K1+XSNFGC1hn0szP2xpvNLI/72Mi1HMoHyCSnmL1OOc9p17eEytiDjABi0mF97L8LpwVBSwELD4hreMkSYiogcsqIVxZdxqtOV1GOqpwJYDxE5eSSBlp0R+FE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712089531; c=relaxed/simple; bh=SFYOW08PqpPzwfxB7hZzx34O7i0fjEPQxzRH+d1frpE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Sb+gLhhnMmn0H3cPb+JatGE0AD6ji+WM1yLrsj6xRV2BBjvW6M63+RnBvYlVnXW0Sq5IiQSql9cn4ZdhGUr4gzDb3oCaQRpAnFdBARSEkCeoCvvtcmT47DyVX404U5Fsrqt+m42/RqYsWGqCmfoJ+LhCLZ/sUZCB6zmNDcEsI20= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=rajTLTK7; arc=none smtp.client-ip=209.85.166.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="rajTLTK7" Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-7cb9dd46babso52438239f.1 for ; Tue, 02 Apr 2024 13:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712089529; x=1712694329; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dBH876vAyKlWi1e2URAo959a0NCBuQah4G/duvZWoLs=; b=rajTLTK7azCbVxtKACPZqVnekoh0J9ambIIcnVvHESH38en1zKvSJlwPZYgVwaU8EI vsyb1fevE8r5m5u+fm2cr7S+q6Q/ttJFyTayY59OoFyTs/IB+hoNw1Ltdj78GttYQs0Z vI2ur8CsAPFoxQ/Bqfhyem3mRmOFbsdrQSl+8dERQslV8XpMHgVtmcRhy658Pbv1iRGt c9lJb+Ry4GoM2nSEgI4bQBp87Ljnya1m3Kxwn2AS56OKqC6YSrfhQopwdWvtMcggDn/g 5n110D87p1SNSylX9pxWHHo33qnYVnF9WFLj7mc12Zg9ZjHE+xpa5PgBrr8WQiGiebsL K1Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712089529; x=1712694329; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dBH876vAyKlWi1e2URAo959a0NCBuQah4G/duvZWoLs=; b=r0jYHolviy+HjuVUL/+4gq0UHK6FWZVwqrzTJCX+LLHwm3gxsTBY0hQUlJgWzlR0t7 8D+W+0qal6/U6BF1BsZpQ5b3dMmRT0pPClndW4H28HxdRPT1RrhC4dmeWGBemIWBfGb0 SWwOIzlX5yaBNkGK/ZFOa3Fw5LRqjWLF979Qm52UlmPteJpqMLcdJajmy70qDzpk2b5K NtbuOfKlPmNaYc6A1Ur9zErUBkho7myQV9RPVR3XZmhiFshYrzCeazvpLXbDdXudrS4D FD7dxHjqo6nkWDvomjP0Xn0p5C2ubaEYQIsFj7oP3rz4TF76ey5r2fI5N/1o6DBG+piE kDsw== X-Forwarded-Encrypted: i=1; AJvYcCWnsloz9lKLy+qSST5XUURiOFPvvY/FB3AakmSmDbhSgOAS94cGNzlM1OC5+WZT/Ee6QIqA2jFribeVJVMb8OBSudqs3uLd0ANY5MBS X-Gm-Message-State: AOJu0Yzj/p1/qvjhs10fZNRIAWoxOn0a15DhS10Ghbzvksv1NW1wps7X SIT1AgCGC/z73yXLDFGjW/iuv/aD5ozVhoYe5Oic9+fpHjpzXMNdcd+Nw35SVoieokD6ak5p5Ue i X-Google-Smtp-Source: AGHT+IGt8zx3yfoLHWJoD/9BicLeLb9BGtnXdE3dsIhE1rH1dRottnU4h8A2EJ7PIpY1aSbDRfOG7w== X-Received: by 2002:a05:6602:3422:b0:7d0:5b47:8f57 with SMTP id n34-20020a056602342200b007d05b478f57mr16468113ioz.1.1712089528818; Tue, 02 Apr 2024 13:25:28 -0700 (PDT) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id u9-20020a02cbc9000000b0047ec029412fsm3445956jaq.12.2024.04.02.13.25.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 13:25:28 -0700 (PDT) From: Jens Axboe To: linux-fsdevel@vger.kernel.org Cc: brauner@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCHSET 0/3] Convert fs drivers to ->read_iter() Date: Tue, 2 Apr 2024 14:18:20 -0600 Message-ID: <20240402202524.1514963-1-axboe@kernel.dk> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, There are still a few users of fops->read() in the core parts of the fs stack. Which is a shame, since it'd be nice to get rid of the non-iterator parts of down the line, and reclaim that part of the file_operations struct. Outside of moving in that direction as a cleanup, using ->read_iter() enables us to mark them with FMODE_NOWAIT. This is important for users like io_uring, where per-IO nonblocking hints make a difference in how efficiently IO can be done. Those two things are my main motivation for starting this work, with hopefully more to come down the line. All patches have been booted and tested, and the corresponding test cases been run. The timerfd one was sent separately previously, figured I'd do a few more and make a smaller series out of it. -- Jens Axboe