Re: [PATCH v3] ceph: add compression_hint mount option

From: Daolong Zhang

Date: Wed Dec 02 2026 - 22:18:48 EST


Hi Alex,

Thanks for the thorough review and catching both issues.

For v4, I split this into a 2-patch series:
1. Zero req->r_ops in ceph_osdc_alloc_request() (and clear
op->extent.sparse_ext after kfree() in osd_req_op_data_release()) so
every op slot starts with opcode 0 and is safe to release on any
constructor or early error path.
2. Always place CEPH_OSD_OP_SETALLOCHINT after WRITE (including on the
initial (1, -1ULL) sentinel) so SETALLOCHINT never creates an object
before WRITE evaluates its truncate fields on either classic OSDs or
Crimson/BlueStore, while classic OSDs still lower set_alloc_hint
before buffer writes in PGTransaction.

I'll send v4 shortly.

Thanks,
Daolong