Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp190008lqb; Thu, 14 Mar 2024 08:41:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4McVsLobpdBNOC4s6J1AX/jU7/tWm6uHz/7wrhMJ4NhVxyCXIC0MkLh3zyKa1korSDrSOQEV5hpi0VklTEavB9VQNmr9wAY3MPYqUnA== X-Google-Smtp-Source: AGHT+IEa63CZ5fjPLcUaIRfC7zQ/pVWAdjftFtWxmR10me59DmW2Ferl/8PCEqVUjG1s2ZKVAw6y X-Received: by 2002:a2e:804e:0:b0:2d4:6c51:e680 with SMTP id p14-20020a2e804e000000b002d46c51e680mr1458830ljg.48.1710430882522; Thu, 14 Mar 2024 08:41:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710430882; cv=pass; d=google.com; s=arc-20160816; b=tyIXa9AVbIwK6lD8xoGOKu+AG1wIp+gHEoGNvKsdvER4Lsj2i72IHiaBfbeG/NwkRT xcp3L6xHNpQiC3TaZIvZs/YIVye5OlgUCGVWBsNQisB/tuCZ1AYPDOMVPcTCA47eAwMa fVRud+5hhd7TIOwN6TP2Ygk89ipg/h/XBHbM0goRxNaEqd/pRsREyvgJdXVB33/buDp7 u8sxVL4RucdXIBaXWYLK6alRze0psYNwzI2sTN1yTh2IXhCmmwfZCIA0b+CX+EIZ337K r8Ewa0+ZBE58N36GiWybWMiD1jilm3NFWywqFxIt5TYcjbC4QWp6OvLp8j9dOGBbVm6j r41g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=OJxAnGHqdudgFubRv83aDZanvuy3oP/f6CUVh38DB2c=; fh=vOTHoKtPm99T74A0cxqwFWktU3HE05l/zn2Y5lTo1yE=; b=XFWqOyK4zd1v6EyTH2pc/UllPtsBaSRtCTFVdB3ZIoDMGnWG2JP9+IQQqgpUUkzW0s 9KyqpCvScgDQDfMbTOJrh3vl/QGugYO3CAwXGceU+w647y7ZpH8qqBt7YZW7LkKYXg2y fKqOY1I+h2X4pqWo4DaaFz3v+7AmJW8xXeNNwW5TZEivrzOvNoZyY3TK3E2uoW3A6j/5 krikySSgcQViJRtpSyEgblPisJXMiiriChaWwBnZqgzJ+90XhMNIOJ653IwUvCk6a3yR /348eOq/0CdWnAGpKnJLiWwbCSgFWiU3eCkMu1xgyvcGWBa6JRHquk4luUuI/Ix3JPJO 6HKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=COYmSUbX; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-103521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hg15-20020a170906f34f00b00a46615f642csi797039ejb.892.2024.03.14.08.41.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 08:41:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=COYmSUbX; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-103521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3DE121F238D3 for ; Thu, 14 Mar 2024 15:41:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F38971B52; Thu, 14 Mar 2024 15:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="COYmSUbX" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 7747D73180 for ; Thu, 14 Mar 2024 15:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710430868; cv=none; b=gmuMqjj8X6YlxCkDN6ybbc+vNPDGaQPMvSCGMYo7GJ3KJ4bRbKG6Htdog4v6gMu0CiIgpnGi+GGHTcuPOLT62mArSSqBMjjJNaO2m0LcAaxY7Zn4WBbPGVEmuUPwgAFXvJE2MZLLGas5OGpbr0uq/OPQIbv9GP4z+sX5BHyyVnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710430868; c=relaxed/simple; bh=myByUEhYch6CQhdrpmC4r6CMq78FabyygvunZPUZQGM=; h=MIME-Version:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=Oybt6lLsQu0mm+AfM/gl4VIY3VRp6JZfrkpx/Vb6vE6VMCERjJWxzqRI12gUDcz/+Ou9U5RvXT38iFuoYdkbS9DHZeStLQ/9AS5Qh69pj7lGZFMpK8X/iwayv9sI4j1ZXSmPBTqCZvtT9AsTJ/ErHu47QqcQxu+YrYlWeUawyhg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu; spf=pass smtp.mailfrom=szeredi.hu; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b=COYmSUbX; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=szeredi.hu Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5684ea117a3so1558533a12.0 for ; Thu, 14 Mar 2024 08:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1710430863; x=1711035663; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=OJxAnGHqdudgFubRv83aDZanvuy3oP/f6CUVh38DB2c=; b=COYmSUbXMkWsPwrpZT4TH/2UTd/yFexdiZvJfZmMrJCzH/PpbeFN0lOWjxn3CZT6ET C91Mt/xoOOb5iJa8u7aeUJAKl/K04SFkZiynFYq1fF/Prawf2V2GS0zloUsfbsKeGXtl FBuQ80YfXxecEqHXm6QWR4gw6ZpJNvWgpPHnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710430863; x=1711035663; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OJxAnGHqdudgFubRv83aDZanvuy3oP/f6CUVh38DB2c=; b=WIakP5KmaxNT03xG9hpD1GSOGOB29O6euWmEgIoQEZgV5jfB9qlztNo6TVpzEXJ8iz oSYj6B2LVErgCJ1vrg35KhA6bNYLb+CgW7VAgjw0A1hW5vMIIo4KF7fYcxDJ94QnCul6 9/+0EZo+INPJmog7XQmvtqcYV5dSe5YIhNiwMhEBfvcSAqkpi9NsuTE5ILOELOmIORNd x0bmsSsupKVBFrxLU+AzB/e+Q8OOGEqaTsr4fc6mvHyNx5HBE6VbBuGgKQcrWWTF6qua hqMdlt4hyYfzQHXtfzK9oN0dwSElEpxUBOThlKq56I4hYV1A/jrozJ2rLIZpRa8TlVHU BpFA== X-Gm-Message-State: AOJu0YwlMD/Yc4Cepp3bsJTHBRApOWpVZ7Rx7/pkTiEFTo0pfCWF0Lyz rp0GxsGW7CoYPFCUT9hlcc27buCs/CaX1GuElHB6m0xP69yoBBUmnYSDI7uAmQklGs0QIqP0oIl btqYH7NahTMwEttK5oaAkNWYTXFHC96RfJ8KWNw== X-Received: by 2002:a17:907:cbc4:b0:a46:5ac:dce2 with SMTP id vk4-20020a170907cbc400b00a4605acdce2mr2029445ejc.51.1710430862614; Thu, 14 Mar 2024 08:41:02 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Miklos Szeredi Date: Thu, 14 Mar 2024 16:40:50 +0100 Message-ID: Subject: [GIT PULL] fuse update for 6.9 To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Content-Type: multipart/mixed; boundary="000000000000fadc420613a0b7f9" --000000000000fadc420613a0b7f9 Content-Type: text/plain; charset="UTF-8" Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git tags/fuse-update-6.9 - Add passthrough mode for regular file I/O. This allows performing read and write (also via memory maps) on a backing file without incurring the overhead of roundtrips to userspace. For now this is only allowed to privileged servers, but this limitation will go away in the future. (Amir Goldstein) - Fix interaction of direct I/O mode with memory maps (Bernd Schubert) - Export filesystem tags through sysfs for virtiofs (Stefan Hajnoczi) - Allow resending queued requests for server crash recovery (Zhao Chen) - Misc fixes and cleanups There's a conflict in fs/fuse/inode.c. The resolution (attached) is to leave the fuse_backing_files_free() call in fuse_conn_put(), before call_rcu(). Thanks, Miklos --- Alexander Mikhalitsyn (2): fuse: fix typo for fuse_permission comment fuse: __kuid_val/__kgid_val helpers in fuse_fill_attr_from_inode() Amir Goldstein (14): fuse: factor out helper fuse_truncate_update_attr() fuse: allocate ff->release_args only if release is needed fuse: break up fuse_open_common() fuse: prepare for failing open response fuse: introduce inode io modes fuse: allow parallel dio writes with FUSE_DIRECT_IO_ALLOW_MMAP fuse: factor out helper for FUSE_DEV_IOC_CLONE fuse: introduce FUSE_PASSTHROUGH capability fuse: implement ioctls to manage backing files fuse: prepare for opening file in passthrough mode fuse: implement open in passthrough mode fuse: implement read/write passthrough fuse: implement splice read/write passthrough fuse: implement passthrough for mmap Bernd Schubert (3): fuse: fix VM_MAYSHARE and direct_io_allow_mmap fuse: create helper function if DIO write needs exclusive lock fuse: add fuse_dio_lock/unlock helper functions Jiachen Zhang (1): fuse: remove an unnecessary if statement Jingbo Xu (1): fuse: add support for explicit export disabling Kemeng Shi (1): fuse: remove unneeded lock which protecting update of congestion_threshold Lei Huang (1): fuse: Fix missing FOLL_PIN for direct-io Li RongQing (1): virtio_fs: remove duplicate check if queue is broken Matthew Wilcox (Oracle) (2): fuse: Remove fuse_writepage fuse: Convert fuse_writepage_locked to take a folio Miklos Szeredi (5): fuse: replace remaining make_bad_inode() with fuse_make_bad() fuse: fix root lookup with nonzero generation fuse: don't unhash root fuse: use FUSE_ROOT_ID in fuse_get_root_inode() fuse: get rid of ff->readdir.lock Stefan Hajnoczi (4): virtiofs: forbid newlines in tags virtiofs: export filesystem tags through sysfs virtiofs: emit uevents on filesystem events virtiofs: drop __exit from virtio_fs_sysfs_exit() Zhao Chen (2): fuse: Introduce a new notification type for resend pending requests fuse: Use the high bit of request ID for indicating resend requests Zhou Jifeng (1): fuse: Track process write operations in both direct and writethrough modes --- Documentation/ABI/testing/sysfs-fs-virtiofs | 11 + fs/fuse/Kconfig | 11 + fs/fuse/Makefile | 2 + fs/fuse/control.c | 6 +- fs/fuse/dev.c | 156 ++++++++-- fs/fuse/dir.c | 55 +++- fs/fuse/file.c | 457 +++++++++++++++++----------- fs/fuse/fuse_i.h | 153 ++++++++-- fs/fuse/inode.c | 55 +++- fs/fuse/iomode.c | 254 ++++++++++++++++ fs/fuse/passthrough.c | 355 +++++++++++++++++++++ fs/fuse/readdir.c | 4 - fs/fuse/virtio_fs.c | 141 +++++++-- include/uapi/linux/fuse.h | 39 ++- 14 files changed, 1422 insertions(+), 277 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-fs-virtiofs create mode 100644 fs/fuse/iomode.c create mode 100644 fs/fuse/passthrough.c --000000000000fadc420613a0b7f9 Content-Type: text/x-patch; charset="US-ASCII"; name="fuse-update-6.9.merge.diff" Content-Disposition: attachment; filename="fuse-update-6.9.merge.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_ltreas4l0 ZGlmZiAtLWNjIGZzL2Z1c2UvaW5vZGUuYwppbmRleCA1MTZlYTI5NzlhOTAsMDI4NjllZGY3MmYz Li4zYTVkODg4NzgzMzUKLS0tIGEvZnMvZnVzZS9pbm9kZS5jCisrKyBiL2ZzL2Z1c2UvaW5vZGUu YwpAQEAgLTk1NCw3IC05NTksOSArOTY2LDkgQEBAIHZvaWQgZnVzZV9jb25uX3B1dChzdHJ1Y3Qg ZnVzZV9jb25uICpmYwogIAkJCVdBUk5fT04oYXRvbWljX3JlYWQoJmJ1Y2tldC0+Y291bnQpICE9 IDEpOwogIAkJCWtmcmVlKGJ1Y2tldCk7CiAgCQl9CisgCQlpZiAoSVNfRU5BQkxFRChDT05GSUdf RlVTRV9QQVNTVEhST1VHSCkpCisgCQkJZnVzZV9iYWNraW5nX2ZpbGVzX2ZyZWUoZmMpOwogLQkJ ZmMtPnJlbGVhc2UoZmMpOwogKwkJY2FsbF9yY3UoJmZjLT5yY3UsIGRlbGF5ZWRfcmVsZWFzZSk7 CiAgCX0KICB9CiAgRVhQT1JUX1NZTUJPTF9HUEwoZnVzZV9jb25uX3B1dCk7Cg== --000000000000fadc420613a0b7f9--