On Tue, Dec 16, 2025 at 10:34:41PM -0700, Caleb Sander Mateos wrote: > Indicate to the ublk server when an incoming request has integrity data > by setting UBLK_IO_F_INTEGRITY in the ublksrv_io_desc's op_flags field. > > Signed-off-by: Caleb Sander Mateos <[email protected]> > --- > drivers/block/ublk_drv.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/block/ublk_drv.c b/drivers/block/ublk_drv.c > index 2893a9172220..d3652ceba96d 100644 > --- a/drivers/block/ublk_drv.c > +++ b/drivers/block/ublk_drv.c > @@ -1107,10 +1107,13 @@ static inline unsigned int > ublk_req_build_flags(struct request *req) > flags |= UBLK_IO_F_NOUNMAP; > > if (req->cmd_flags & REQ_SWAP) > flags |= UBLK_IO_F_SWAP; > > + if (blk_integrity_rq(req)) > + flags |= UBLK_IO_F_INTEGRITY; > +
Reviewed-by: Ming Lei <[email protected]> Thanks, Ming
