Skip to content

adding helper function to set blobstore io timeout#65

Open
abhilashshetty04 wants to merge 1 commit intov25.05.x-mayastorfrom
bs_bdev_timeout
Open

adding helper function to set blobstore io timeout#65
abhilashshetty04 wants to merge 1 commit intov25.05.x-mayastorfrom
bs_bdev_timeout

Conversation

@abhilashshetty04
Copy link
Member

No description provided.

Signed-off-by: Abhilash Shetty <abhilash.shetty@datacore.com>
{
struct blob_bdev *blob_bdev = (struct blob_bdev *)bs_dev;

return spdk_bdev_set_timeout(blob_bdev->desc, timeout_in_sec, cb_fn, cb_arg);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not do this from mayastor?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

struct blob_bdev is defined inside blob_bdev.c . It doesn't get generated in libspdk-rs targets as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bs_dev desc is stored inside blob_bdev during blob_dev_init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants