From 1c79aca50eab45a97c76c50cd815786a5bd3b7a8 Mon Sep 17 00:00:00 2001 From: Alexander Eremin Date: Thu, 26 Jan 2012 14:49:36 +0300 Subject: [PATCH] 1779 panic: assertion failed: rc == DDI_SUCCESS, file: ../../common/os/devcfg.c, line: 4185 Reviewed by: Yuri Pankov Reviewed by: Dan Kruchinin Reviewed by: Milan Jurik Reviewed by: Michael Speer Reviewed by: Igor Kozhukhov Reviewed by: Alexander Stetsenko Reviewed by: Bayard Bell Reviewed by: Garrett D'Amore Approved by: Richard Lowe --- usr/src/uts/common/os/devcfg.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/usr/src/uts/common/os/devcfg.c b/usr/src/uts/common/os/devcfg.c index 85ae46fd39..b2f6db6cdd 100644 --- a/usr/src/uts/common/os/devcfg.c +++ b/usr/src/uts/common/os/devcfg.c @@ -21,6 +21,9 @@ /* * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. */ +/* + * Copyright 2012 Nexenta Systems, Inc. All rights reserved. + */ #include #include @@ -4181,11 +4184,11 @@ quiesce_one_device(dev_info_t *dip, void *arg) rc = devi_quiesce(dip); - /* quiesce() should never fail */ - ASSERT(rc == DDI_SUCCESS); - if (rc != DDI_SUCCESS && should_quiesce) { - +#ifdef DEBUG + cmn_err(CE_WARN, "quiesce() failed for %s%d", + ddi_driver_name(dip), ddi_get_instance(dip)); +#endif /* DEBUG */ if (arg != NULL) *((int *)arg) = -1; } -- 2.11.4.GIT