aboutsummaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorSaurabh Sengar2022-07-25 02:37:28 -0700
committerWei Liu2022-09-23 09:27:17 +0000
commit78c65f0f3c0ca5198b454f59069a1c2e352424dd (patch)
tree26b2f1343454921ad4d62682500f6eb6038b4fc1 /mm
parent521a547ced6477c54b4b0cc206000406c221b4d6 (diff)
Drivers: hv: vmbus: Optimize vmbus_on_event
In the vmbus_on_event loop, 2 jiffies timer will not serve the purpose if callback_fn takes longer. For effective use move this check inside of callback functions where needed. Out of all the VMbus drivers using vmbus_on_event, only storvsc has a high packet volume, thus add this limit only in storvsc callback for now. There is no apparent benefit of loop itself because this tasklet will be scheduled anyway again if there are packets left in ring buffer. This patch removes this unnecessary loop as well. Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/1658741848-4210-1-git-send-email-ssengar@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions