]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: messenger should loop through the front part of the message
authorYehuda Sadeh-Weinraub <yehuda@yehuda.infit.com>
Wed, 26 Mar 2008 20:18:27 +0000 (22:18 +0200)
committerYehuda Sadeh-Weinraub <yehuda@yehuda.infit.com>
Wed, 26 Mar 2008 20:20:36 +0000 (22:20 +0200)
src/kernel/messenger.c

index 737722a7f34a87340c7c5bf1aea4dec96fbf6b8f..80b64712b4568328f393d289c8fcfb1bdde2a847 100644 (file)
@@ -635,7 +635,7 @@ static int read_message_partial(struct ceph_connection *con)
 
        /* front */
        front_len = le32_to_cpu(m->hdr.front_len);
-       if (m->front.iov_len < front_len) {
+       while (m->front.iov_len < front_len) {
                if (m->front.iov_base == NULL) {
                        m->front.iov_base = kmalloc(front_len, GFP_KERNEL);
                        if (m->front.iov_base == NULL)