Hello, This should help the "-o discard" case and improve performance across the board, although we don't have a solution for querying the object store backend and passing the appropriate value for alloc_size yet. v1 -> v2: - keep special casing whole-object layered discards - adjust alloc_size if it's bigger than object size Ilya Dryomov (3): rbd: get rid of obj_req->obj_request_count rbd: handle DISCARD and WRITE_ZEROES separately rbd: round off and ignore discards that are too small drivers/block/rbd.c | 123 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 104 insertions(+), 19 deletions(-) -- 2.14.4