linux/drivers/hv
Vitaly Kuznetsov 940b68e2c3 Drivers: hv: ring_buffer: eliminate hv_ringbuffer_peek()
Currently, there is only one user for hv_ringbuffer_read()/
hv_ringbuffer_peak() functions and the usage of these functions is:
- insecure as we drop ring_lock between them, someone else (in theory
  only) can acquire it in between;
- non-optimal as we do a number of things (acquire/release the above
  mentioned lock, calculate available space on the ring, ...) twice and
  this path is performance-critical.

Remove hv_ringbuffer_peek() moving the logic from __vmbus_recvpacket() to
hv_ringbuffer_read().

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-12-14 19:27:30 -08:00
..
channel_mgmt.c Drivers: hv: vmbus: channge vmbus_connection.channel_lock to mutex 2015-12-14 19:15:05 -08:00
channel.c Drivers: hv: ring_buffer: eliminate hv_ringbuffer_peek() 2015-12-14 19:27:30 -08:00
connection.c Drivers: hv: vmbus: Force all channel messages to be delivered on CPU 0 2015-12-14 19:15:05 -08:00
hv_balloon.c Drivers: hv: balloon: Enable dynamic memory protocol negotiation with Windows 10 hosts 2015-08-04 22:28:39 -07:00
hv_fcopy.c Drivers: hv: utils: run polling callback always in interrupt context 2015-12-14 19:12:21 -08:00
hv_kvp.c Drivers: hv: utils: Invoke the poll function after handshake 2015-12-14 19:15:05 -08:00
hv_snapshot.c Drivers: hv: utils: Invoke the poll function after handshake 2015-12-14 19:15:05 -08:00
hv_util.c Drivers: hv: util: On device remove, close the channel after de-initializing the service 2015-03-01 19:31:02 -08:00
hv_utils_transport.c Drivers: hv: utils: fix crash when device is removed from host side 2015-12-14 19:27:30 -08:00
hv_utils_transport.h Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode 2015-12-14 19:27:30 -08:00
hv.c drivers/hv: correct tsc page sequence invalid value 2015-12-14 19:15:05 -08:00
hyperv_vmbus.h Drivers: hv: ring_buffer: eliminate hv_ringbuffer_peek() 2015-12-14 19:27:30 -08:00
Kconfig
Makefile Drivers: hv: util: introduce hv_utils_transport abstraction 2015-05-24 12:17:41 -07:00
ring_buffer.c Drivers: hv: ring_buffer: eliminate hv_ringbuffer_peek() 2015-12-14 19:27:30 -08:00
vmbus_drv.c drivers:hv: Allow for MMIO claims that span ACPI _CRS records 2015-12-14 19:15:05 -08:00