freebsd-skq/sys/cam/nvme
Warner Losh 60b7691d56 Fix a sleepable malloc in ndastart. We shouldn't be sleeping
here. Return ENOMEM when we can't malloc a buffer for the DSM
TRIM. This should fix the WITNESS warnings similar to the following:

uma_zalloc_arg: zone "16" with the following non-sleepable locks held:
exclusive sleep mutex CAM device lock (CAM device lock) r = 0 (0xfffff800080c34d0) locked @ /usr/src/sys/cam/nvme/nvme_da.c:351

Reviewed by: scottl@
Sponsored by: Netflix
2018-01-26 23:14:46 +00:00
..
nvme_all.c SPDX: finish tagging sys/cam. 2018-01-16 23:19:57 +00:00
nvme_all.h SPDX: finish tagging sys/cam. 2018-01-16 23:19:57 +00:00
nvme_da.c Fix a sleepable malloc in ndastart. We shouldn't be sleeping 2018-01-26 23:14:46 +00:00
nvme_xpt.c SPDX: finish tagging sys/cam. 2018-01-16 23:19:57 +00:00