Skip to content
Commit d61b7f97 authored by Josef Bacik's avatar Josef Bacik Committed by Jens Axboe
Browse files

nbd: only set MSG_MORE when we have more to send



A user noticed that write performance was horrible over loopback and we
traced it to an inversion of when we need to set MSG_MORE.  It should be
set when we have more bvec's to send, not when we are on the last bvec.
This patch made the test go from 20 iops to 78k iops.

Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
Fixes: 429a787b

 ("nbd: fix use-after-free of rq/bio in the xmit path")
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 88a75033
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment