[PATCH v7 05/13] block: add dma-buf support for raw bdev
Pavel Begunkov
asml.silence at gmail.com
Mon Oct 5 04:43:14 PDT 2026
On 10/5/26 10:11, Christoph Hellwig wrote:
> On Mon, Sep 28, 2026 at 02:32:21PM +0100, Pavel Begunkov wrote:
>> Add a simple proxy implementation of init_dma_buf_io_ctx() forwarding
>> the call to a new struct block_device_operations operation. Also reject
>> dma-buf backed iterators for buffered IO.
>>
>> Reviewed-by: Christoph Hellwig <hch at lst.de>
>> [pavel: reject dma-buf without O_DIRECT]
>> Signed-off-by: Pavel Begunkov <asml.silence at gmail.com>
>
> The Sashiko report about the errno on fallback here looks real,
> and is probably easily fixed by setting a proper errno.
I'm going to move the check into blkdev_buffered_write(),
this should cover both paths. direct_write_fallback() will
see -EOPNOTSUPP and fail appropriately.
--
Pavel Begunkov
More information about the Linux-nvme
mailing list