Fam Zheng ee17e84830 virtio-blk: Fix and clean up the in_sg and out_sg check
out_sg is checked by iov_to_buf below, so it can be dropped.

Add assert and iov_discard_back around in_sg, as the in_sg is handled in
dataplane code.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-06-27 18:18:31 +02:00
..
2014-06-23 11:12:28 -04:00
2014-06-23 11:01:24 -04:00
2014-06-23 11:12:27 -04:00
2014-06-20 16:22:07 +01:00
2014-06-23 11:01:25 -04:00
2014-06-24 20:01:24 +04:00
2014-06-19 18:44:22 +03:00
2014-06-20 23:40:16 +02:00
2014-06-23 11:12:28 -04:00
2014-06-23 17:49:49 +03:00
2014-06-23 11:12:27 -04:00
2014-06-23 11:01:25 -04:00
2014-06-23 11:12:27 -04:00
2014-06-23 11:12:27 -04:00