nvme: loop: clear NVME_CTRL_ADMIN_Q_STOPPED after admin queue is reallocated
authorMing Lei <ming.lei@redhat.com>
Thu, 14 Oct 2021 08:17:09 +0000 (16:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 00:27:58 +0000 (18:27 -0600)
commit1d35d519d8bf224ccdb43f9a235b8bda2d6d453c
tree30d28c3f225d7c9795fb4dd0f1384cd5f2ff9417
parent9e6a6b1212100148c109675e003369e3e219dbd9
nvme: loop: clear NVME_CTRL_ADMIN_Q_STOPPED after admin queue is reallocated

The nvme-loop's admin queue may be freed and reallocated, and we have to
reset the flag of NVME_CTRL_ADMIN_Q_STOPPED so that the flag can match
with the quiesce state of the admin queue.

nvme-loop is the only driver to reallocate request queue, and not see
such usage in other nvme drivers.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211014081710.1871747-6-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/loop.c