Commit 9b639aa9 authored by paul luse's avatar paul luse Committed by Darek Stojaczyk
Browse files

bdev/compress: function rename



Old name was misleading due to earlier changes

Change-Id: Ic04223db983e98c9703a43e6778b0094f99bc81d
Signed-off-by: default avatarpaul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463341


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent faf9ad6a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1238,7 +1238,7 @@ comp_bdev_ch_create_cb(void *io_device, void *ctx_buf)
}

static void
_clear_qp_and_put_channel(struct vbdev_compress *comp_bdev)
_channel_cleanup(struct vbdev_compress *comp_bdev)
{
	/* Note: comp_bdevs can share a device_qp if they are
	 * on the same thread so we leave the device_qp element
@@ -1257,7 +1257,7 @@ _comp_bdev_ch_destroy_cb(void *arg)

	pthread_mutex_lock(&comp_bdev->reduce_lock);
	if (comp_bdev->ch_count == 0) {
		_clear_qp_and_put_channel(comp_bdev);
		_channel_cleanup(comp_bdev);
	}
	pthread_mutex_unlock(&comp_bdev->reduce_lock);
}
@@ -1279,7 +1279,7 @@ comp_bdev_ch_destroy_cb(void *io_device, void *ctx_buf)
			spdk_thread_send_msg(comp_bdev->reduce_thread,
					     _comp_bdev_ch_destroy_cb, comp_bdev);
		} else {
			_clear_qp_and_put_channel(comp_bdev);
			_channel_cleanup(comp_bdev);
		}
	}
	pthread_mutex_unlock(&comp_bdev->reduce_lock);