git: 41c4e1c7f738 - main - cxgbe(4): Allow dump_cimla and dump_devlog to sleep.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Mar 2022 20:29:56 UTC
The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=41c4e1c7f738de2e88acb77911a22dbd57ad7d79 commit 41c4e1c7f738de2e88acb77911a22dbd57ad7d79 Author: Navdeep Parhar <np@FreeBSD.org> AuthorDate: 2022-03-22 20:13:56 +0000 Commit: Navdeep Parhar <np@FreeBSD.org> CommitDate: 2022-03-23 18:18:44 +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. MFC after: 1 week Sponsored by: Chelsio Communications --- 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 59da0acc6c86..f367ebc60c14 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -9011,7 +9011,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) { @@ -9452,7 +9452,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) {