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: Jim Harris <james.r.harris@intel.com> Change-Id: I8d18c7ac037ab4b0ba612f308b9ca38538d112b1 Reviewed-on: https://review.gerrithub.io/378197 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
674c709733
commit
81939c44f1
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user