Commit 6ed8bdf7 authored by Konrad Sztyber's avatar Konrad Sztyber Committed by Jim Harris
Browse files

bdev: remove leading underscore from _bdev_io_(inc|dec)rement_outstanding



The leading underscore usually indicate that a function providing the
actual implementation for something that's called from some other
wrapper function without the leading underscore.  That is not the case
for these functions, so this patch removes the leading underscores.

Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I6e1186b156116249ee53a3845ae99ba87db5122b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17868


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 7cb6475a
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -1018,7 +1018,7 @@ bdev_io_needs_sequence_exec(struct spdk_bdev_desc *desc, struct spdk_bdev_io *bd
}

static inline void
_bdev_io_increment_outstanding(struct spdk_bdev_channel *bdev_ch,
bdev_io_increment_outstanding(struct spdk_bdev_channel *bdev_ch,
			      struct spdk_bdev_shared_resource *shared_resource)
{
	bdev_ch->io_outstanding++;
@@ -1026,7 +1026,7 @@ _bdev_io_increment_outstanding(struct spdk_bdev_channel *bdev_ch,
}

static inline void
_bdev_io_decrement_outstanding(struct spdk_bdev_channel *bdev_ch,
bdev_io_decrement_outstanding(struct spdk_bdev_channel *bdev_ch,
			      struct spdk_bdev_shared_resource *shared_resource)
{
	assert(bdev_ch->io_outstanding > 0);
@@ -1394,7 +1394,7 @@ bdev_ch_resubmit_io(struct spdk_bdev_channel *bdev_ch, struct spdk_bdev_io *bdev
{
	struct spdk_bdev *bdev = bdev_ch->bdev;

	_bdev_io_increment_outstanding(bdev_io->internal.ch, bdev_ch->shared_resource);
	bdev_io_increment_outstanding(bdev_io->internal.ch, bdev_ch->shared_resource);
	bdev_io->internal.error.nvme.cdw0 = 0;
	bdev_io->num_retries++;
	bdev_submit_request(bdev, spdk_bdev_io_get_io_channel(bdev_io), bdev_io);
@@ -1488,7 +1488,7 @@ _bdev_io_complete_push_bounce_done(void *ctx, int rc)
	bdev_io_put_buf(bdev_io);

	/* Continue with IO completion flow */
	_bdev_io_decrement_outstanding(bdev_ch, shared_resource);
	bdev_io_decrement_outstanding(bdev_ch, shared_resource);
	if (spdk_unlikely(_bdev_io_handle_no_mem(bdev_io, BDEV_IO_RETRY_STATE_INVALID))) {
		return;
	}
@@ -6991,7 +6991,7 @@ bdev_io_complete_sequence_cb(void *ctx, int status)
		bdev_io->internal.status = SPDK_BDEV_IO_STATUS_FAILED;
	}

	_bdev_io_decrement_outstanding(bdev_ch, shared_resource);
	bdev_io_decrement_outstanding(bdev_ch, shared_resource);
	if (spdk_unlikely(_bdev_io_handle_no_mem(bdev_io, BDEV_IO_RETRY_STATE_INVALID))) {
		return;
	}
@@ -7045,7 +7045,7 @@ spdk_bdev_io_complete(struct spdk_bdev_io *bdev_io, enum spdk_bdev_io_status sta
			}
		}

		_bdev_io_decrement_outstanding(bdev_ch, shared_resource);
		bdev_io_decrement_outstanding(bdev_ch, shared_resource);
		if (spdk_unlikely(_bdev_io_handle_no_mem(bdev_io, BDEV_IO_RETRY_STATE_SUBMIT))) {
			return;
		}