Whamcloud - gitweb
LU-13088 ldlm: Fix sleeping function called in atomic
[fs/lustre-release.git] / lustre / llite / vvp_object.c
index c3bf715..51e1bba 100644 (file)
@@ -37,9 +37,8 @@
 #define DEBUG_SUBSYSTEM S_LLITE
 
 #include <linux/user_namespace.h>
-#ifdef HAVE_UIDGID_HEADER
-# include <linux/uidgid.h>
-#endif
+#include <linux/uidgid.h>
+
 #include <libcfs/libcfs.h>
 
 #include <obd.h>
@@ -150,7 +149,8 @@ static int vvp_conf_set(const struct lu_env *env, struct cl_object *obj,
                 * This operation is expensive but mmap processes have to pay
                 * a price themselves. */
                unmap_mapping_range(conf->coc_inode->i_mapping,
-                                   0, OBD_OBJECT_EOF, 0);
+                                   0, OBD_OBJECT_EOF, 1);
+               pcc_layout_invalidate(conf->coc_inode);
        }
        return 0;
 }