linux/drivers
Long Li 2217a47de4 scsi: storvsc: Select channel based on available percentage of ring buffer to write
This is a best effort for estimating on how busy the ring buffer is for
that channel, based on available buffer to write in percentage. It is
still possible that at the time of actual ring buffer write, the space
may not be available due to other processes may be writing at the time.

Selecting a channel based on how full it is can reduce the possibility
that a ring buffer write will fail, and avoid the situation a channel is
over busy.

Now it's possible that storvsc can use a smaller ring buffer size
(e.g. 40k bytes) to take advantage of cache locality.

Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-04-20 15:38:38 -04:00
..
accessibility
acpi xen: fixes for 4.17-rc1 2018-04-12 11:04:35 -07:00
amba
android
ata scsi: libsas: add transport class for ATA devices 2018-04-18 19:32:51 -04:00
atm
auxdisplay
base mm: check __highest_present_section_nr directly in memory_dev_init() 2018-04-11 10:28:31 -07:00
bcma
block for-linus-20180413 2018-04-13 15:15:15 -07:00
bluetooth
bus
cdrom
char
clk The large diff this time around is from the addition of a new clk driver 2018-04-13 15:51:06 -07:00
clocksource
connector
cpufreq
cpuidle
crypto
dax
dca
devfreq
dio
dma DMAengine updates for v4.17-rc1 2018-04-10 12:14:37 -07:00
dma-buf
edac
eisa
extcon
firewire
firmware Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging 2018-04-13 16:32:16 -07:00
fmc
fpga
fsi
gpio
gpu amdgpu, omap and snd regression fix 2018-04-12 20:56:10 -07:00
hid
hsi
hv scsi: vmbus: Add function to report available ring buffer to write in total ring size percentage 2018-04-18 19:32:51 -04:00
hwmon
hwspinlock
hwtracing
i2c i2c: add param sanity check to i2c_transfer() 2018-04-11 23:33:46 +02:00
ide
idle
iio
infiniband
input Changes to chrome-platform for v4.17 2018-04-13 16:20:36 -07:00
iommu IOMMU Updates for Linux v4.17 2018-04-11 18:50:41 -07:00
ipack
irqchip IOMMU Updates for Linux v4.17 2018-04-11 18:50:41 -07:00
isdn
leds
lightnvm
macintosh
mailbox
mcb
md
media remoteproc updates for v4.17 2018-04-10 12:09:27 -07:00
memory
memstick
message scsi: mptfc: fix spelling mistake in macro names 2018-04-19 00:08:47 -04:00
mfd platform/chrome: mfd/cros_ec_dev: Add sysfs entry to set keyboard wake lid angle 2018-04-10 22:25:07 -07:00
misc * Fix 2032 time access issues and new compiler warnings 2018-04-12 10:21:19 -07:00
mmc MMC core: 2018-04-12 10:59:03 -07:00
mtd This pull request contains updates for both UBI and UBIFS: 2018-04-11 16:39:34 -07:00
mux
net scsi: netvsc: Use the vmbus function to calculate ring buffer percentage 2018-04-18 19:32:52 -04:00
nfc
ntb
nubus
nvdimm
nvme nvme: expand nvmf_check_if_ready checks 2018-04-12 09:58:27 -06:00
nvmem
of Kbuild updates for v4.17 (2nd) 2018-04-15 17:21:30 -07:00
opp
oprofile
parisc
parport
pci PCI: Remove messages about reassigning resources 2018-04-11 08:46:50 -05:00
pcmcia
perf
phy
pinctrl
platform Changes to chrome-platform for v4.17 2018-04-13 16:20:36 -07:00
pnp
power
powercap
pps
ps3
ptp
pwm pwm: Changes for v4.17-rc1 2018-04-13 15:46:21 -07:00
rapidio rapidio: use a reference count for struct mport_dma_req 2018-04-11 10:28:37 -07:00
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2018-04-13 09:43:20 -07:00
sbus
scsi scsi: storvsc: Select channel based on available percentage of ring buffer to write 2018-04-20 15:38:38 -04:00
sfi
sh
siox
slimbus
sn
soc The large diff this time around is from the addition of a new clk driver 2018-04-13 15:51:06 -07:00
soundwire
spi
spmi
ssb
staging page cache: use xa_lock 2018-04-11 10:28:39 -07:00
target scsi: target: Change return type to vm_fault_t 2018-04-19 00:49:37 -04:00
tc
tee
thermal Merge branches 'thermal-core' and 'thermal-soc' into next 2018-04-13 14:11:53 +08:00
thunderbolt
tty
uio
usb
uwb
vfio
vhost vhost: return bool from *_access_ok() functions 2018-04-11 10:54:06 -04:00
video
virt
virtio virtio: feature 2018-04-11 18:58:27 -07:00
visorbus
vlynq
vme
w1
watchdog linux-watchdog 4.17-rc1 merge window tag 2018-04-13 15:43:50 -07:00
xen xen: fixes for 4.17-rc1 2018-04-12 11:04:35 -07:00
zorro
Kconfig
Makefile