Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Apr 2021 08:44:03 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a78109d5db87 - main - Partially revert r248770.
Message-ID:  <202104020844.1328i31O023342@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dchagin:

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

commit a78109d5db87b08785a822770e2e4fdb15f921b6
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-04-02 08:43:17 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2021-04-02 08:43:17 +0000

    Partially revert r248770.
    
    Under geom(4) nvme_ns_bio_process() is on the path where sleep
    is prohibited as g_io_shedule_down() calls THREAD_NO_SLEEPNG()
    before geom->start().
    
    Reviewed By:            imp
    MFC after:              2 weeks
    Differential Revision:  https://reviews.freebsd.org/D29539
---
 sys/dev/nvme/nvme_ns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/nvme/nvme_ns.c b/sys/dev/nvme/nvme_ns.c
index f14a2f631387..82ab48efa826 100644
--- a/sys/dev/nvme/nvme_ns.c
+++ b/sys/dev/nvme/nvme_ns.c
@@ -473,7 +473,7 @@ nvme_ns_bio_process(struct nvme_namespace *ns, struct bio *bp,
 	case BIO_DELETE:
 		dsm_range =
 		    malloc(sizeof(struct nvme_dsm_range), M_NVME,
-		    M_ZERO | M_WAITOK);
+		    M_ZERO | M_NOWAIT);
 		if (!dsm_range) {
 			err = ENOMEM;
 			break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104020844.1328i31O023342>