NVMe: Do not set IO queue depth beyond device max
authorKeith Busch <keith.busch@intel.com>
Fri, 27 Jul 2012 17:57:23 +0000 (13:57 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 27 Jul 2012 17:57:23 +0000 (13:57 -0400)
commita0cadb85b8b758608ae0759151e29de7581c6731
tree3fc3c95f4cef33866a1da81daa86906bd5fa762c
parent8fc23e032debd682f5ba9fc524a5846c10d2c522
NVMe: Do not set IO queue depth beyond device max

Set the depth for IO queues to the device's maximum supported queue
entries if the requested depth exceeds the device's capabilities.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme.c
include/linux/nvme.h