bdev/passthru: Use typedef in bdev_module.h for spdk_bdev_unregsister
Including bdev_module.h and using spdk_bdev_unregister_cb instead of spdk_delete_passthru_complete will follow other bdev modules. This patch doesn't change any behavior. Change-Id: Ia236ea37ae22ed5c7740b02d1c5bd37491b9cf9a Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/444166 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
393ac02b56
commit
5cefef8039
@ -670,7 +670,7 @@ create_passthru_disk(const char *bdev_name, const char *vbdev_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
delete_passthru_disk(struct spdk_bdev *bdev, spdk_delete_passthru_complete cb_fn, void *cb_arg)
|
delete_passthru_disk(struct spdk_bdev *bdev, spdk_bdev_unregister_cb cb_fn, void *cb_arg)
|
||||||
{
|
{
|
||||||
struct bdev_names *name;
|
struct bdev_names *name;
|
||||||
|
|
||||||
|
@ -37,8 +37,7 @@
|
|||||||
#include "spdk/stdinc.h"
|
#include "spdk/stdinc.h"
|
||||||
|
|
||||||
#include "spdk/bdev.h"
|
#include "spdk/bdev.h"
|
||||||
|
#include "spdk/bdev_module.h"
|
||||||
typedef void (*spdk_delete_passthru_complete)(void *cb_arg, int bdeverrno);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create new pass through bdev.
|
* Create new pass through bdev.
|
||||||
@ -56,7 +55,7 @@ int create_passthru_disk(const char *bdev_name, const char *vbdev_name);
|
|||||||
* \param cb_fn Function to call after deletion.
|
* \param cb_fn Function to call after deletion.
|
||||||
* \param cb_arg Argument to pass to cb_fn.
|
* \param cb_arg Argument to pass to cb_fn.
|
||||||
*/
|
*/
|
||||||
void delete_passthru_disk(struct spdk_bdev *bdev, spdk_delete_passthru_complete cb_fn,
|
void delete_passthru_disk(struct spdk_bdev *bdev, spdk_bdev_unregister_cb cb_fn,
|
||||||
void *cb_arg);
|
void *cb_arg);
|
||||||
|
|
||||||
#endif /* SPDK_VBDEV_PASSTHRU_H */
|
#endif /* SPDK_VBDEV_PASSTHRU_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user