summaryrefslogtreecommitdiff
path: root/include/linux/log2.h
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2018-04-20 00:54:24 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-04-20 22:38:38 +0300
commit2217a47de42f85b69714c2a621af13cfeae35b40 (patch)
treea6fd09143ed5f3201d03b5801579f778c4f54a31 /include/linux/log2.h
parent69589c9bb9c24499ace5158e236bed5906009efa (diff)
downloadlinux-2217a47de42f85b69714c2a621af13cfeae35b40.tar.xz
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>
Diffstat (limited to 'include/linux/log2.h')
0 files changed, 0 insertions, 0 deletions