File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ static struct vmap_area *alloc_vmap_area(unsigned long size,
365
365
BUG_ON (offset_in_page (size ));
366
366
BUG_ON (!is_power_of_2 (align ));
367
367
368
- might_sleep_if ( gfpflags_allow_blocking ( gfp_mask ) );
368
+ might_sleep ( );
369
369
370
370
va = kmalloc_node (sizeof (struct vmap_area ),
371
371
gfp_mask & GFP_RECLAIM_MASK , node );
@@ -1037,6 +1037,8 @@ void vm_unmap_aliases(void)
1037
1037
if (unlikely (!vmap_initialized ))
1038
1038
return ;
1039
1039
1040
+ might_sleep ();
1041
+
1040
1042
for_each_possible_cpu (cpu ) {
1041
1043
struct vmap_block_queue * vbq = & per_cpu (vmap_block_queue , cpu );
1042
1044
struct vmap_block * vb ;
@@ -1080,6 +1082,7 @@ void vm_unmap_ram(const void *mem, unsigned int count)
1080
1082
unsigned long addr = (unsigned long )mem ;
1081
1083
struct vmap_area * va ;
1082
1084
1085
+ might_sleep ();
1083
1086
BUG_ON (!addr );
1084
1087
BUG_ON (addr < VMALLOC_START );
1085
1088
BUG_ON (addr > VMALLOC_END );
@@ -1431,6 +1434,8 @@ struct vm_struct *remove_vm_area(const void *addr)
1431
1434
{
1432
1435
struct vmap_area * va ;
1433
1436
1437
+ might_sleep ();
1438
+
1434
1439
va = find_vmap_area ((unsigned long )addr );
1435
1440
if (va && va -> flags & VM_VM_AREA ) {
1436
1441
struct vm_struct * vm = va -> vm ;
You can’t perform that action at this time.
0 commit comments