diff options
| -rw-r--r-- | drivers/block/rbd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index aab513f1fb00..e60a638c2d32 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c | |||
| @@ -2683,8 +2683,8 @@ static int __rbd_notify_op_lock(struct rbd_device *rbd_dev, | |||
| 2683 | { | 2683 | { |
| 2684 | struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; | 2684 | struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; |
| 2685 | struct rbd_client_id cid = rbd_get_cid(rbd_dev); | 2685 | struct rbd_client_id cid = rbd_get_cid(rbd_dev); |
| 2686 | int buf_size = 4 + 8 + 8 + CEPH_ENCODING_START_BLK_LEN; | 2686 | char buf[4 + 8 + 8 + CEPH_ENCODING_START_BLK_LEN]; |
| 2687 | char buf[buf_size]; | 2687 | int buf_size = sizeof(buf); |
| 2688 | void *p = buf; | 2688 | void *p = buf; |
| 2689 | 2689 | ||
| 2690 | dout("%s rbd_dev %p notify_op %d\n", __func__, rbd_dev, notify_op); | 2690 | dout("%s rbd_dev %p notify_op %d\n", __func__, rbd_dev, notify_op); |
| @@ -3202,8 +3202,8 @@ static void __rbd_acknowledge_notify(struct rbd_device *rbd_dev, | |||
| 3202 | u64 notify_id, u64 cookie, s32 *result) | 3202 | u64 notify_id, u64 cookie, s32 *result) |
| 3203 | { | 3203 | { |
| 3204 | struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; | 3204 | struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; |
| 3205 | int buf_size = 4 + CEPH_ENCODING_START_BLK_LEN; | 3205 | char buf[4 + CEPH_ENCODING_START_BLK_LEN]; |
| 3206 | char buf[buf_size]; | 3206 | int buf_size = sizeof(buf); |
| 3207 | int ret; | 3207 | int ret; |
| 3208 | 3208 | ||
| 3209 | if (result) { | 3209 | if (result) { |
