qed: introduce bdrv_qed_init_state
commit61c7887e0f3dcfa9c4ccdfe43374243a4a5c0e8d
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jun 2017 13:27:46 +0000 (29 15:27 +0200)
committerFam Zheng <famz@redhat.com>
Mon, 17 Jul 2017 03:33:11 +0000 (17 11:33 +0800)
treed28a9dbc80dfb8d2282eb26cf9c1d3bc02d0a876
parent61124f03ab7e71d269417aafddbc2501d0379bc6
qed: introduce bdrv_qed_init_state

This will be used in the next patch, which will call bdrv_qed_do_open
with a CoMutex taken.  bdrv_qed_init_state provides a nice place to
initialize it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20170629132749.997-9-pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/qed.c