[PATCH] nvme-pci: Fix incorrect use of CMB size to calculate q_depth

2018-02-05 Thread sbates
From: Stephen Bates We should not be using the CMB to determine the permissable q_depth when we don't plan to place any queues in the CMB. In the case of a small CMB or large numbers of queues this could lead to shallow queues when they don't need to be. Signed-off-by: Stephen Bates --- driver

[PATCH] pci: Add a acs_disable option for pci kernel parameter

2017-10-26 Thread sbates
From: Stephen Bates On some servers the BIOS sets up ACS on any valid pci_dev in the system. The kernel has no way of backing this out since the kernel only turns ACS capabilities on. This patch adds a new boot option to the pci kernel parameter called "acs_disable" that will disable ACS. This i

[PATCH v2] genalloc: Make the avail variable an atomic_long_t

2017-10-26 Thread sbates
From: Stephen Bates If the amount of resources allocated to a gen_pool exceeds 2^32 then the avail atomic overflows and this causes problems when clients try and borrow resources from the pool. This is only expected to be an issue on 64 bit systems. Add the header to pull in atomic_long* operat

[PATCH] genalloc: Make the avail variable an atomic64_t

2017-10-25 Thread sbates
From: Stephen Bates If the amount of resources allocated to a gen_pool exceeds 2^32 then the avail atomic overflows and this causes problems when clients try and borrow resources from the pool. Add the header to pull in atomic64 operations on platforms that do not support them natively. Signed

[PATCH] blk-mq: Improvements to the hybrid polling sleep time calculation

2017-08-21 Thread sbates
From: Stephen Bates Hybrid polling currently uses half the average completion time as an estimate of how long to poll for. We can improve upon this by noting that polling before the minimum completion time makes no sense. Add a sysfs entry to use this fact to improve CPU utilization in certain ca