Skip to content

Commit

Permalink
DAOS-16868 bio: Skip LED reset on absent bdev (#15718)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Nabarro <[email protected]>
  • Loading branch information
tanabarr committed Jan 14, 2025
1 parent ef6b324 commit d38853c
Showing 1 changed file with 2 additions and 5 deletions.
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

0 comments on commit d38853c

Please sign in to comment.