change __GFP_KSWAPD_RECLAIM from 0 to M_NOWAIT
authorjsg <jsg@openbsd.org>
Sun, 30 Jul 2023 12:16:20 +0000 (12:16 +0000)
committerjsg <jsg@openbsd.org>
Sun, 30 Jul 2023 12:16:20 +0000 (12:16 +0000)
aja@ reported a panic where __i915_gpu_coredump() used a combination of
gfp flags which resulted in neither M_WAITOK or M_NOWAIT.

sys/dev/pci/drm/include/linux/gfp.h

index 008e548..7733a0b 100644 (file)
@@ -16,7 +16,7 @@
 #define __GFP_RETRY_MAYFAIL    0
 #define __GFP_MOVABLE          0
 #define __GFP_COMP             0
-#define __GFP_KSWAPD_RECLAIM   0
+#define __GFP_KSWAPD_RECLAIM   M_NOWAIT
 #define __GFP_HIGHMEM          0
 #define __GFP_RECLAIMABLE      0
 #define __GFP_NOMEMALLOC       0