Comment 0 for bug 1477718

Revision history for this message
Tim Gardner (timg-tpi) wrote :

commit 11d83360452ea2a95e699da01f8e1bcc4676a5de (mm, mempool: do not allow atomic resizing) in Linux 4.1 changed the function prototype for mempool_resize() by dropping the memory allocation flags parameter.

Add this code to request.c:

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)
+ err = mempool_resize(bufs, target);
+#else
  err = mempool_resize(bufs, target, GFP_KERNEL);
+#endif