Lines Matching refs:status
80 int status;
606 raid_bdev_io_complete(struct raid_bdev_io *raid_io, enum spdk_bdev_io_status status)
625 if (status == SPDK_BDEV_IO_STATUS_SUCCESS) {
653 raid_io->completion_cb(raid_io, status);
658 status == SPDK_BDEV_IO_STATUS_SUCCESS)) {
664 status = SPDK_BDEV_IO_STATUS_FAILED;
667 spdk_bdev_io_complete(bdev_io, status);
683 * status - status of the base IO
690 enum spdk_bdev_io_status status)
695 if (status != raid_io->base_bdev_io_status_default) {
696 raid_io->base_bdev_io_status = status;
1701 if (process->status == 0) {
1702 process->status = -ECANCELED;
1783 raid_bdev_configure_write_sb_cb(int status, struct raid_bdev *raid_bdev, void *ctx)
1785 if (status == 0) {
1789 raid_bdev->bdev.name, spdk_strerror(-status));
1794 raid_bdev->configure_cb(raid_bdev->configure_cb_ctx, status);
1931 raid_bdev_remove_base_bdev_done(struct raid_base_bdev_info *base_info, int status)
1938 if (status == 0) {
1948 base_info->remove_cb(base_info->remove_cb_ctx, status);
1953 raid_bdev_remove_base_bdev_on_unquiesced(void *ctx, int status)
1958 if (status != 0) {
1960 raid_bdev->bdev.name, spdk_strerror(-status));
1963 raid_bdev_remove_base_bdev_done(base_info, status);
1989 raid_bdev_channels_remove_base_bdev_done(struct spdk_io_channel_iter *i, int status)
2010 raid_bdev_remove_base_bdev_write_sb_cb(int status, struct raid_bdev *raid_bdev, void *ctx)
2014 if (status != 0) {
2016 raid_bdev->bdev.name, spdk_strerror(-status));
2017 raid_bdev_remove_base_bdev_done(base_info, status);
2025 raid_bdev_remove_base_bdev_on_quiesced(void *ctx, int status)
2030 if (status != 0) {
2032 raid_bdev->bdev.name, spdk_strerror(-status));
2033 raid_bdev_remove_base_bdev_done(base_info, status);
2127 if (process->status == 0) {
2128 process->status = -ENODEV;
2255 raid_bdev_fail_base_remove_cb(void *ctx, int status)
2259 if (status != 0) {
2292 raid_bdev_resize_write_sb_cb(int status, struct raid_bdev *raid_bdev, void *ctx)
2294 if (status != 0) {
2296 raid_bdev->bdev.name, spdk_strerror(-status));
2448 raid_bdev_process_finish_write_sb_cb(int status, struct raid_bdev *raid_bdev, void *ctx)
2450 if (status != 0) {
2452 raid_bdev->bdev.name, spdk_strerror(-status));
2504 raid_bdev_process_finish_target_removed(void *ctx, int status)
2508 if (status != 0) {
2509 SPDK_ERRLOG("Failed to remove target bdev: %s\n", spdk_strerror(-status));
2516 raid_bdev_process_finish_unquiesced(void *ctx, int status)
2520 if (status != 0) {
2521 SPDK_ERRLOG("Failed to unquiesce bdev: %s\n", spdk_strerror(-status));
2524 if (process->status != 0) {
2525 status = _raid_bdev_remove_base_bdev(process->target, raid_bdev_process_finish_target_removed,
2527 if (status != 0) {
2528 raid_bdev_process_finish_target_removed(process, status);
2561 if (process->status == 0) {
2574 spdk_strerror(-process->status));
2582 __raid_bdev_process_finish(struct spdk_io_channel_iter *i, int status)
2596 if (process->status == 0) {
2609 raid_bdev_process_finish_quiesced(void *ctx, int status)
2614 if (status != 0) {
2615 SPDK_ERRLOG("Failed to quiesce bdev: %s\n", spdk_strerror(-status));
2649 raid_bdev_process_finish(struct raid_bdev_process *process, int status)
2653 if (process->status == 0) {
2654 process->status = status;
2672 raid_bdev_process_window_range_unlocked(void *ctx, int status)
2676 if (status != 0) {
2677 SPDK_ERRLOG("Failed to unlock LBA range: %s\n", spdk_strerror(-status));
2678 raid_bdev_process_finish(process, status);
2704 raid_bdev_process_channels_update_done(struct spdk_io_channel_iter *i, int status)
2724 raid_bdev_process_request_complete(struct raid_bdev_process_request *process_req, int status)
2733 if (status != 0) {
2734 process->window_status = status;
2811 raid_bdev_process_window_range_locked(void *ctx, int status)
2815 if (status != 0) {
2816 SPDK_ERRLOG("Failed to lock LBA range: %s\n", spdk_strerror(-status));
2817 raid_bdev_process_finish(process, status);
2921 process->status = -ENOMEM;
2942 raid_bdev_channels_abort_start_process_done(struct spdk_io_channel_iter *i, int status)
2964 raid_bdev_channels_start_process_done(struct spdk_io_channel_iter *i, int status)
2971 if (status == 0 &&
2975 status = -ENODEV;
2978 if (status != 0) {
2981 spdk_strerror(-status));
3143 _raid_bdev_configure_base_bdev_cont(struct spdk_io_channel_iter *i, int status)
3216 raid_bdev_configure_base_bdev_check_sb_cb(const struct raid_bdev_superblock *sb, int status,
3222 switch (status) {
3234 status = -EEXIST;
3243 base_info->name, spdk_strerror(-status));
3249 configure_cb(base_info->configure_cb_ctx, status);
3577 raid_bdev_examine_others_done(void *_ctx, int status)
3582 ctx->cb_fn(ctx->cb_ctx, status);
3588 const struct raid_bdev_superblock *sb, int status, void *ctx);
3593 static void raid_bdev_examine_others(void *_ctx, int status);
3597 int status, void *_ctx)
3601 if (status != 0) {
3602 raid_bdev_examine_others_done(ctx, status);
3610 raid_bdev_examine_others(void *_ctx, int status)
3617 if (status != 0 && status != -EEXIST) {
3623 status = -ENODEV;
3642 status = raid_bdev_examine_load_sb(uuid_str, raid_bdev_examine_others_load_cb, ctx);
3643 if (status != 0) {
3649 raid_bdev_examine_others_done(ctx, status);
3831 raid_bdev_examine_load_sb_done(const struct raid_bdev_superblock *sb, int status, void *_ctx)
3836 ctx->cb(bdev, sb, status, ctx->cb_ctx);
3889 raid_bdev_examine_done(void *ctx, int status)
3893 if (status != 0) {
3895 bdev->name, spdk_strerror(-status));
3901 raid_bdev_examine_cont(struct spdk_bdev *bdev, const struct raid_bdev_superblock *sb, int status,
3904 switch (status) {
3913 status = 0;
3917 raid_bdev_examine_done(bdev, status);