Chaitanya,

> -     if (!blk_rq_payload_bytes(rq))
> +     if (!blk_rq_nr_phys_segments(rq))

Wouldn't it be better to set RQF_SPECIAL_PAYLOAD and friends in
nvme_setup_write_zeroes() like it's done for discard?

-- 
Martin K. Petersen      Oracle Linux Engineering

Reply via email to