[PATCHv8 5/6] io_uring: enable per-io hinting capability
Christoph Hellwig
hch at lst.de
Thu Oct 17 22:53:47 PDT 2024
Same hint vs write stream thing here as well.
> + if (ddir == ITER_SOURCE &&
> + req->file->f_op->fop_flags & FOP_PER_IO_HINTS)
> + rw->kiocb.ki_write_hint = READ_ONCE(sqe->write_hint);
> + else
> + rw->kiocb.ki_write_hint = WRITE_LIFE_NOT_SET;
WRITE_LIFE_NOT_SET is in the wrong namespae vs the separate streams.
Either use 0 directly or add a separate constant for it.
More information about the Linux-nvme
mailing list