bdev/iscsi: remove unused master_ch
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ibef9c3aebea5aa4516e05bf48254c915cb4c8a34 Reviewed-on: https://review.gerrithub.io/c/445352 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
5ec6b08eb0
commit
c7598147ff
@ -80,7 +80,6 @@ struct bdev_iscsi_lun {
|
||||
char *url;
|
||||
pthread_mutex_t mutex;
|
||||
uint32_t ch_count;
|
||||
struct bdev_iscsi_io_channel *master_ch;
|
||||
struct spdk_thread *master_td;
|
||||
struct spdk_poller *no_master_ch_poller;
|
||||
struct spdk_thread *no_master_ch_poller_td;
|
||||
@ -490,9 +489,7 @@ bdev_iscsi_create_cb(void *io_device, void *ctx_buf)
|
||||
|
||||
pthread_mutex_lock(&lun->mutex);
|
||||
if (lun->ch_count == 0) {
|
||||
assert(lun->master_ch == NULL);
|
||||
assert(lun->master_td == NULL);
|
||||
lun->master_ch = ch;
|
||||
lun->master_td = spdk_get_thread();
|
||||
lun->poller = spdk_poller_register(bdev_iscsi_poll_lun, lun, 0);
|
||||
ch->lun = lun;
|
||||
@ -511,10 +508,8 @@ bdev_iscsi_destroy_cb(void *io_device, void *ctx_buf)
|
||||
pthread_mutex_lock(&lun->mutex);
|
||||
lun->ch_count--;
|
||||
if (lun->ch_count == 0) {
|
||||
assert(lun->master_ch != NULL);
|
||||
assert(lun->master_td != NULL);
|
||||
|
||||
lun->master_ch = NULL;
|
||||
lun->master_td = NULL;
|
||||
spdk_poller_unregister(&lun->poller);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user