OSDN Git Service

block/nvme: Use common error path in nvme_add_io_queue()
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 21 Aug 2020 19:53:50 +0000 (21:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 7 Sep 2020 10:23:55 +0000 (12:23 +0200)
commitc8edbfb2cc44ad78a8cfbdd6a0cd1af863e199fd
treec79d20257118a0e4367459d253ff89634b4ffbab
parentbf6ce5ec6d6846d7c1fc3899438ec11efc9c8fc8
block/nvme: Use common error path in nvme_add_io_queue()

Rearrange nvme_add_io_queue() by using a common error path.
This will be proven useful in few commits where we add IRQ
notification to the IO queues.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200821195359.1285345-7-philmd@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nvme.c