]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: wait for queues to freeze before calling update_hr_hw_queues
authorJames Smart <james.smart@broadcom.com>
Fri, 16 Oct 2020 21:17:24 +0000 (14:17 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 23 Oct 2020 10:54:36 +0000 (12:54 +0200)
commit1edbf7e527c422b9b383f7f9bddeb56b55e82437
tree0121826017af688c73abaf1457a7ec6e8407c098
parent5d8270dee271aeff70d6c816a4fabf137b0b77b5
nvme-fc: wait for queues to freeze before calling update_hr_hw_queues

On reconnect, the code currently does not freeze the controller before
possibly updating the number hw queues for the controller.

Add the freeze before updating the number of hw queues.  Note: the queues
are already started and remain started through the reconnect.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c