Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAOS-16868 bio: Skip LED reset on absent bdev (#15718) #15733

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/bio/bio_device.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* (C) Copyright 2020-2024 Intel Corporation.
* (C) Copyright 2025 Hewlett Packard Enterprise Development LP
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
Expand Down Expand Up @@ -794,11 +795,7 @@ set_timer_and_check_faulty(struct bio_xs_context *xs_ctxt, struct spdk_pci_addr
if (dev_info->bdi_traddr == NULL) {
D_ERROR("No transport address for dev:"DF_UUID", unable to verify state\n",
DP_UUID(dev_info->bdi_dev_id));
rc = -DER_INVAL;
goto out;
}

if (strcmp(dev_info->bdi_traddr, tr_addr) == 0) {
} else if (strcmp(dev_info->bdi_traddr, tr_addr) == 0) {
if ((is_faulty != NULL) && (dev_info->bdi_flags & NVME_DEV_FL_FAULTY) != 0)
*is_faulty = true;

Expand Down
Loading