mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
ublk: set UBLK_IO_F_INTEGRITY in ublksrv_io_desc
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 <csander@purestorage.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
98bf225685
commit
f82f0a16a8
@@ -1113,6 +1113,9 @@ static inline unsigned int ublk_req_build_flags(struct request *req)
|
||||
if (req->cmd_flags & REQ_SWAP)
|
||||
flags |= UBLK_IO_F_SWAP;
|
||||
|
||||
if (blk_integrity_rq(req))
|
||||
flags |= UBLK_IO_F_INTEGRITY;
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user