Files
kernel_google_msm-4.9/drivers/block
Josef Bacik 4b7c09a5f7 nbd: only set MSG_MORE when we have more to send
[ Upstream commit d61b7f972dab2a7d187c38254845546dfc8eed85 ]

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: Josef Bacik <jbacik@fb.com>
Fixes: 429a787be679 ("nbd: fix use-after-free of rq/bio in the xmit path")
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-10 07:42:52 -08:00
..
2018-07-11 16:26:43 +02:00
2016-06-27 12:26:08 -07:00
2016-06-27 12:26:08 -07:00
2016-03-14 09:06:01 -06:00
2016-03-15 15:59:47 -07:00
2016-06-27 12:26:08 -07:00
2016-06-27 12:26:08 -07:00
2016-06-27 12:26:08 -07:00
2016-08-07 14:41:02 -06:00