Re: [PATCH 3/6] vhost: switch to use vhost_add_used_n()

2013-08-19 Thread Jason Wang
On 08/16/2013 05:56 PM, Michael S. Tsirkin wrote: On Fri, Aug 16, 2013 at 01:16:27PM +0800, Jason Wang wrote: Let vhost_add_used() to use vhost_add_used_n() to reduce the code duplication. Signed-off-by: Jason Wang jasow...@redhat.com Does compiler inline it then? Reason I ask, last

Re: [PATCH 3/6] vhost: switch to use vhost_add_used_n()

2013-08-16 Thread Michael S. Tsirkin
On Fri, Aug 16, 2013 at 01:16:27PM +0800, Jason Wang wrote: Let vhost_add_used() to use vhost_add_used_n() to reduce the code duplication. Signed-off-by: Jason Wang jasow...@redhat.com Does compiler inline it then? Reason I ask, last time I checked put_user inside vhost_add_used was much

[PATCH 3/6] vhost: switch to use vhost_add_used_n()

2013-08-15 Thread Jason Wang
Let vhost_add_used() to use vhost_add_used_n() to reduce the code duplication. Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/vhost/vhost.c | 43 ++- 1 files changed, 2 insertions(+), 41 deletions(-) diff --git a/drivers/vhost/vhost.c