Whamcloud - gitweb
. fixed assertion when called from interrupt handler (allocating lib_msg_t)
[fs/lustre-release.git] / lustre / portals / include / linux / kp30.h
index 815375c..63eaee7 100644 (file)
@@ -282,7 +282,9 @@ do {                                                                          \
 
 #define PORTAL_ALLOC_GFP(ptr, size, mask)                                 \
 do {                                                                      \
-        LASSERT (!in_interrupt());                                        \
+        LASSERT (!in_interrupt() ||                                       \
+                 (size <= PORTAL_VMALLOC_SIZE &&                          \
+                  (mask & __GFP_WAIT) == 0));                             \
         if ((size) > PORTAL_VMALLOC_SIZE)                                 \
                 (ptr) = vmalloc(size);                                    \
         else                                                              \