Commit 81939c44 authored by Jim Harris's avatar Jim Harris Committed by Daniel Verkamp
Browse files

bdev: rename need_buf_tailq_t to bdev_io_tailq_t



We will use this typedef for some additional use
cases where are not specific to the need_buf
functionality.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I8d18c7ac037ab4b0ba612f308b9ca38538d112b1

Reviewed-on: https://review.gerrithub.io/378197


Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarPaul Luse <paul.e.luse@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent 674c7097
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ int __itt_init_ittlib(const char *, __itt_group_id);
#define BUF_SMALL_POOL_SIZE	8192
#define BUF_LARGE_POOL_SIZE	1024

typedef TAILQ_HEAD(, spdk_bdev_io) need_buf_tailq_t;
typedef TAILQ_HEAD(, spdk_bdev_io) bdev_io_tailq_t;

struct spdk_bdev_mgr {
	struct spdk_mempool *bdev_io_pool;
@@ -95,8 +95,8 @@ static void *g_cb_arg = NULL;


struct spdk_bdev_mgmt_channel {
	need_buf_tailq_t need_buf_small;
	need_buf_tailq_t need_buf_large;
	bdev_io_tailq_t need_buf_small;
	bdev_io_tailq_t need_buf_large;
};

struct spdk_bdev_desc {
@@ -124,7 +124,7 @@ struct spdk_bdev_channel {
	 */
	uint64_t		io_outstanding;

	TAILQ_HEAD(, spdk_bdev_io)	queued_resets;
	bdev_io_tailq_t		queued_resets;

#ifdef SPDK_CONFIG_VTUNE
	uint64_t		start_tsc;
@@ -236,7 +236,7 @@ spdk_bdev_io_put_buf(struct spdk_bdev_io *bdev_io)
	struct spdk_mempool *pool;
	struct spdk_bdev_io *tmp;
	void *buf;
	need_buf_tailq_t *tailq;
	bdev_io_tailq_t *tailq;
	uint64_t length;
	struct spdk_bdev_mgmt_channel *ch;

@@ -269,7 +269,7 @@ spdk_bdev_io_get_buf(struct spdk_bdev_io *bdev_io, spdk_bdev_io_get_buf_cb cb)
{
	uint64_t len = bdev_io->u.bdev.num_blocks * bdev_io->bdev->blocklen;
	struct spdk_mempool *pool;
	need_buf_tailq_t *tailq;
	bdev_io_tailq_t *tailq;
	void *buf = NULL;
	struct spdk_bdev_mgmt_channel *ch;

@@ -676,7 +676,7 @@ spdk_bdev_channel_create(void *io_device, void *ctx_buf)
}

static void
_spdk_bdev_abort_io(need_buf_tailq_t *queue, struct spdk_bdev_channel *ch)
_spdk_bdev_abort_io(bdev_io_tailq_t *queue, struct spdk_bdev_channel *ch)
{
	struct spdk_bdev_io *bdev_io, *tmp;