]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: set queue limits for the admin queue
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Mar 2016 17:07:11 +0000 (18:07 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 21:42:50 +0000 (14:42 -0700)
commita40b66f0656097113bf529b00b2ef6393669269a
treea79f4c7eaa2d392a6f09f93f691eeea7ba1e479e
parent5ae426d4daa176d6989a66596b5dc0125e3eed9b
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 <hch@lst.de>
Reported-by: Jeff Lien <Jeff.Lien@hgst.com>
Tested-by: Jeff Lien <Jeff.Lien@hgst.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c