diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-02-17 20:04:08 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-02-24 20:28:31 +0100 |
commit | e7a88e82fe380459b864e05b372638aeacb0f52d (patch) | |
tree | 5ac73053add9decef9f5ec7fc6d769e1bb6672d8 /lib/test_bpf.c | |
parent | 81f70ba233d5f660e1ea5fe23260ee323af5d53a (diff) |
libceph: don't bail early from try_read() when skipping a message
The contract between try_read() and try_write() is that when called
each processes as much data as possible. When instructed by osd_client
to skip a message, try_read() is violating this contract by returning
after receiving and discarding a single message instead of checking for
more. try_write() then gets a chance to write out more requests,
generating more replies/skips for try_read() to handle, forcing the
messenger into a starvation loop.
Cc: stable@vger.kernel.org # 3.10+
Reported-by: Varada Kari <Varada.Kari@sandisk.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Tested-by: Varada Kari <Varada.Kari@sandisk.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'lib/test_bpf.c')
0 files changed, 0 insertions, 0 deletions