bdev: Fix spdk_bdev_part_io_type_supported()
The function spdk_bdev_part_io_type_supported() internally invokes io_type_supported() as provided in the base bdev's function table. This function should be called with the base bdev's context instead of the bdev itself. Change-Id: I5fbda0521f05b86dd81725614c5e45ee170cd8f5 Signed-off-by: Wael Halbawi <waelhalbawi@gmail.com> Reviewed-on: https://review.gerrithub.io/426306 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
104f7d8575
commit
e80b3d5f13
@ -146,7 +146,8 @@ spdk_bdev_part_io_type_supported(void *_part, enum spdk_bdev_io_type io_type)
|
||||
{
|
||||
struct spdk_bdev_part *part = _part;
|
||||
|
||||
return part->internal.base->bdev->fn_table->io_type_supported(part->internal.base->bdev, io_type);
|
||||
return part->internal.base->bdev->fn_table->io_type_supported(part->internal.base->bdev->ctxt,
|
||||
io_type);
|
||||
}
|
||||
|
||||
static struct spdk_io_channel *
|
||||
|
Loading…
Reference in New Issue
Block a user