Commit c0b2ac5c authored by Shuhei Matsumoto's avatar Shuhei Matsumoto Committed by Konrad Sztyber
Browse files

bdev: Change void to bdev_io pointer of parameter of _bdev_io_submit()



_bdev_io_submit() is not used as a function pointer now. We can remove
the comment and change the type of the parameter from void to
spdk_bdev_io pointer. We do not have to remove inline.

Signed-off-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I019bad3be284f66719a945f5ae4423e351daba5f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24627


Community-CI: Mellanox Build Bot
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
parent 92fb2251
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -3545,13 +3545,9 @@ bdev_rw_split_get_buf_cb(struct spdk_io_channel *ch, struct spdk_bdev_io *bdev_i
	_bdev_rw_split(bdev_io);
}

/* Explicitly mark this inline, since it's used as a function pointer and otherwise won't
 *  be inlined, at least on some compilers.
 */
static inline void
_bdev_io_submit(void *ctx)
_bdev_io_submit(struct spdk_bdev_io *bdev_io)
{
	struct spdk_bdev_io *bdev_io = ctx;
	struct spdk_bdev *bdev = bdev_io->bdev;
	struct spdk_bdev_channel *bdev_ch = bdev_io->internal.ch;