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
This commit is contained in:
parent
45c67e8f6b
commit
a78109d5db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user