From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795587121; b=qsbyHUfAhrqa/2NGqDjrJ/iA/IwGINJ4bcqO2SwBX7F9fG03Z4Y8z3dPvah5tI5kBXod /IO1X7qt/IyKCnafaVVERGfkBVfja5fiysyh9jUuX00zZuaeugdI9BAC8s3ua1QKPeNhG olsudOQdqdez2tlyxd7nK8KVNAAJ/g7yzDc26JLbgRAbp3I6LH2mGOyB7hSXGquFb2Ajm uedGlgeXKYYyZRBC0XoxGBx2Rf2/d9EUXJfzhBbe1Z0BBXd0Z0fdpq4lihe7BU0mMsGDC fRpd/kE7N4zdKourPDT9WN4RKIcFaVV1kR4AqvPF4LqqLg4sErMkCLoU5IWfzuSkiVw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795587121; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=QFqAXcQkxOquMyWdhHaXd2jZau8ELeRT34k6c5WkgOA=; b=Htnq4LLnlr8XRafUkVKtSSV/tNHWL5y0q3Zxvo4plcga49BTXmhKfs/GZ0afFxBgO39Q dmvdsEqraqhgFafscBPaG42O7sLMMV6TzoEg+PwPdNGombySATAdrWTZ/CVG+gHiNLUmN 1Qq1aB/q2iX4BvGNpvBKuDxEcP4bXVty8ZKKvxoL8HsnyQjWXWePri4gdlfdtsKPdWTGQ ihw32TaburbFkIIqYZKCyuRKFOoy3Y+O4uUdXUOKK0Ue1hXa5zoR8VTf6UMRau+Y0r34I ztMMOu0ouNAgjJC2QKqK8urTftXF6+zDlcNYpbnKyqrH8I8g7UCIZ+zVl6xYYYJfXsg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA656606A31E; Wed, 25 Nov 2026 06:12:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CA656606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 4D49468AFE; Wed, 25 Nov 2026 07:11:54 +0100 (CET) Date: Wed, 25 Nov 2026 07:11:54 +0100 From: Christoph Hellwig To: Mengmeng Zhao Cc: Christian Brauner , Christoph Hellwig , Anuj Gupta , Nitesh Shetty , Jens Axboe , Sumit Semwal , christian.koenig@amd.com, Philipp Stanner , Dan Williams , Matthew Wilcox , Jan Kara , Alexander Viro , tytso@mit.edu, Andreas Dilger , Baokun Li , Ojaswin Mujoo , "Ritesh Harjani (IBM)" , Zhang Yi , asml.silence@gmail.com, Jonathan Corbet , Shuah Khan , Randy Dunlap , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, nvdimm@lists.linux.dev, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-doc@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Li Wang , Mengmeng Zhao Subject: Re: [RFC PATCH v2 6/8] fs: add FMODE_CAN_DMABUF_IO and require it for dma-buf I/O contexts Message-ID: <20261125061154.GA20910@lst.de> References: <20261113070621.273953-1-mengmeng.zhao@linux.dev> <20261113070621.273953-7-mengmeng.zhao@linux.dev> <20261120-faust-bohnenkraut-reduzieren-a30811186a15@brauner> X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Nov 23, 2026 at 09:28:07AM +0800, Mengmeng Zhao wrote: > > This is stealing yet another FMODE_* bit for special-purpose stuff. > > We're really really short of them. Did Christoph suggest this? > Hi Christian, thanks for pointing out this. If I understand correctly, > Christoph suggests a new file->f_mode to allow dma-buf check in RFC v1[1]. > > Hi Christoph, do you have any comments or suggestions? I'am happy to adjust > this in the next version if there is a better approach. I didn't suggest a particular approach, but the FMODE_ bits seems very fitting here as it sorts out the support issue very well.