]> git.proxmox.com Git - mirror_qemu.git/commit - block/nvme.c
block/nvme: keep BDRVNVMeState pointer in NVMeQueuePair
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 17 Jun 2020 13:22:00 +0000 (14:22 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 23 Jun 2020 14:46:08 +0000 (15:46 +0100)
commitb75fd5f55467307a6e367bc349a8ea6ce30d8a1c
tree4930aa5a3779f8a58ac8d83bb4bd8f176829e013
parenta5db74f324ee55badfa61b03922ec24439bb94a6
block/nvme: keep BDRVNVMeState pointer in NVMeQueuePair

Passing around both BDRVNVMeState and NVMeQueuePair is unwieldy. Reduce
the number of function arguments by keeping the BDRVNVMeState pointer in
NVMeQueuePair. This will come in handly when a BH is introduced in a
later patch and only one argument can be passed to it.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200617132201.1832152-7-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/nvme.c