git: 82386f825eb7 - stable/13 - cxgbe(4): Allow dump_cimla and dump_devlog to sleep.

From: Navdeep Parhar <np_at_FreeBSD.org>
Date: Sat, 02 Apr 2022 01:49:21 UTC
The branch stable/13 has been updated by np:

URL: https://cgit.FreeBSD.org/src/commit/?id=82386f825eb724b9369bf32d4a17976bcaf06e67

commit 82386f825eb724b9369bf32d4a17976bcaf06e67
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2022-03-22 20:13:56 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2022-04-02 01:48:52 +0000

    cxgbe(4): Allow dump_cimla and dump_devlog to sleep.
    
    This has been safe since e9e7bc82505, which moved parts of error
    handling from the ithread to a taskqueue.
    
    Sponsored by:   Chelsio Communications
    
    (cherry picked from commit 41c4e1c7f738de2e88acb77911a22dbd57ad7d79)
---
 sys/dev/cxgbe/t4_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index 2db23d218366..703335d9bc87 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -9064,7 +9064,7 @@ dump_cimla(struct adapter *sc)
 		    device_get_nameunit(sc->dev));
 		return;
 	}
-	rc = sbuf_cim_la(sc, &sb, M_NOWAIT);
+	rc = sbuf_cim_la(sc, &sb, M_WAITOK);
 	if (rc == 0) {
 		rc = sbuf_finish(&sb);
 		if (rc == 0) {
@@ -9505,7 +9505,7 @@ dump_devlog(struct adapter *sc)
 		    device_get_nameunit(sc->dev));
 		return;
 	}
-	rc = sbuf_devlog(sc, &sb, M_NOWAIT);
+	rc = sbuf_devlog(sc, &sb, M_WAITOK);
 	if (rc == 0) {
 		rc = sbuf_finish(&sb);
 		if (rc == 0) {