summaryrefslogtreecommitdiffstats
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/rbd.c')
-rw-r--r--drivers/block/rbd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 8d26c0f2be14..a8521338bf46 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -3068,6 +3068,14 @@ static int rbd_dev_image_id(struct rbd_device *rbd_dev)
3068 void *p; 3068 void *p;
3069 3069
3070 /* 3070 /*
3071 * When probing a parent image, the image id is already
3072 * known (and the image name likely is not). There's no
3073 * need to fetch the image id again in this case.
3074 */
3075 if (rbd_dev->spec->image_id)
3076 return 0;
3077
3078 /*
3071 * First, see if the format 2 image id file exists, and if 3079 * First, see if the format 2 image id file exists, and if
3072 * so, get the image's persistent id from it. 3080 * so, get the image's persistent id from it.
3073 */ 3081 */