diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 6dae6586a8a9a4d19c8526d7be2a0e470deb0a46..16eb247cb5fba8c5af63e8b1de209ab98795053c 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -2769,6 +2769,14 @@ static bool img_obj_request_simple(struct rbd_obj_request *obj_request) if (!obj_request_overlaps_parent(obj_request)) return true; + /* + * Entire-object layered writes - we will overwrite whatever + * parent data there is anyway. + */ + if (!obj_request->offset && + obj_request->length == rbd_obj_bytes(&rbd_dev->header)) + return true; + /* * If the object is known to already exist, its parent data has * already been copied.