|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Improve performance of IOCTL_PRIVCMD_MMAPBATCH_V2
On 21/11/12 10:29, Jan Beulich wrote: On 16.11.12 at 15:45, Mats Petersson <mats.petersson@xxxxxxxxxx> wrote: Yes, good spot - for some reason, I have double checked the behaviour of "done", and it returns the index of the item which gave the error, not actually "how many were processed". I have rewritten this part of code for V3 of this patch, but I think it still requires an increment of "done" to make it work correctly. + else /* exit if error and no err_ptr */ + goto out; + } + batch_left -= done; + index += done; + } while (batch_left);nr -= batch; This is cleaned up in the V3 patch. static struct vm_operations_struct privcmd_vm_ops;static long privcmd_ioctl_mmap_batch(void __user *udata, int version) As above. -- Mats Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |