spdk.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [SPDK] Re: spdk_get_io_channel: *ERROR*: could not find io_device
@ 2022-05-09 23:57 Harris, James R
  0 siblings, 0 replies; only message in thread
From: Harris, James R @ 2022-05-09 23:57 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 2993 bytes --]

Hi,

Please share the source code you are using for your test, and any other details that you think will be helpful.

Thanks,

Jim


On 5/9/22, 3:52 AM, "bsddiy(a)163.com" <bsddiy(a)163.com> wrote:

    Hi,

    I can open nvme device with SPDK API spdk_bdev_open_ext(),
    but when I want to get a channel to do I/O,  spdk_bdev_get_io_channel()
    always return NULL, and it prints following error message:

     thread.c:2122:spdk_get_io_channel: *ERROR*: could not find io_device 0x7f52ebb41180

    The full log is here:

    OAT: ioat_dmadev_probe(): Init 0000:80:01.7 on NUMA node 1
    mlx5_net: No available register for sampler.
    mlx5_common: No Verbs device matches PCI device 0000:b1:00.1, are kernel drivers loaded?
    mlx5_common: Verbs device not found: 0000:b1:00.1
    mlx5_common: Failed to initialize device context.
    EAL: Requested device 0000:b1:00.1 cannot be used
    TELEMETRY: No legacy callbacks, legacy socket not created
    [2022-05-09 17:28:46.703804] bdev.c:6132:bdev_register: *DEBUG*: Inserting bdev Nvme0n1 into list
    [2022-05-09 17:28:46.703850] bdev.c:6376:bdev_open: *DEBUG*: Opening descriptor 0x7f52e4381d10 for bdev Nvme0n1 on thread 0x7f52e433def0
    [2022-05-09 17:28:46.703984] thread.c:2122:spdk_get_io_channel: *ERROR*: could not find io_device 0x7f52ebb41180
    [2022-05-09 17:28:46.704000] bdev_nvme.c: 602:_bdev_nvme_add_io_path: *ERROR*: Failed to alloc io_channel.
    [2022-05-09 17:28:46.704010] blobstore.c:3124:bs_channel_create: *ERROR*: Failed to create device channel.
    [2022-05-09 17:28:46.704019] blobstore.c:5533:bs_register_md_thread: *ERROR*: Failed to get IO channel.
    [2022-05-09 17:28:46.704059] bdev.c:6544:spdk_bdev_close: *DEBUG*: Closing descriptor 0x7f52e4381d10 for bdev Nvme0n1 on thread 0x7f52e433def0
    [2022-05-09 17:28:46.704074] bdev.c:6376:bdev_open: *DEBUG*: Opening descriptor 0x7f52e4381fc0 for bdev Nvme0n1 on thread 0x7f52e433def0
    [2022-05-09 17:28:46.704086] thread.c:2122:spdk_get_io_channel: *ERROR*: could not find io_device 0x7f52ebb41180
    [2022-05-09 17:28:46.704094] bdev_nvme.c: 602:_bdev_nvme_add_io_path: *ERROR*: Failed to alloc io_channel.
    [2022-05-09 17:28:46.704103] vbdev_gpt.c: 519:vbdev_gpt_read_gpt: *ERROR*: Failed to get an io_channel.
    [2022-05-09 17:28:46.704110] bdev.c:6544:spdk_bdev_close: *DEBUG*: Closing descriptor 0x7f52e4381fc0 for bdev Nvme0n1 on thread 0x7f52e433def0
    [2022-05-09 17:28:46.704133] vbdev_gpt.c: 572:vbdev_gpt_examine: *ERROR*: Failed to read info from bdev Nvme0n1
    [2022-05-09 17:28:46.704549] bdev.c: 695:spdk_bdev_first: *DEBUG*: Starting bdev iteration at Nvme0n1
    dev: Nvme0n1

    ===

    Can anyone tell me the reason why I can not open a channel with a valid desc ?

    Regards,
    Skye Xu
    _______________________________________________
    SPDK mailing list -- spdk(a)lists.01.org
    To unsubscribe send an email to spdk-leave(a)lists.01.org


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-09 23:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09 23:57 [SPDK] Re: spdk_get_io_channel: *ERROR*: could not find io_device Harris, James R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).