nvme: set queue limits for the admin queue
authorChristoph Hellwig <[email protected]>
Wed, 2 Mar 2016 17:07:11 +0000 (18:07 +0100)
committerJens Axboe <[email protected]>
Thu, 3 Mar 2016 21:42:50 +0000 (14:42 -0700)
commitda35825d9a091a7a1d5824c8468168e2658333ff
treea79f4c7eaa2d392a6f09f93f691eeea7ba1e479e
parenta1a0e23e49037c23ea84bc8cc146a03584d13577
nvme: set queue limits for the admin queue

Factor out a helper to set all the device specific queue limits and apply
them to the admin queue in addition to the I/O queues.  Without this the
command size on the admin queue is arbitrarily low, and the missing
other limitations are just minefields waiting for victims.

Signed-off-by: Christoph Hellwig <[email protected]>
Reported-by: Jeff Lien <[email protected]>
Tested-by: Jeff Lien <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/nvme/host/core.c