[lkml]   [2009]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectrunning get_user_pages() from kernel thread

ksm is running from its kernel thread context get_user_pages(), but look
like it isnt safe to do get_user_pages() from kernel thread:
get_user_pages may lead into do_swap_page() that may lead into calling

Now grab_swap_token() will do:
current_interval = global_faults - current->mm->... (here is the bug...
(kernel thread doesnt have mm strcture)

So the question is: is this thing is by desgin? (that kernel thread cant
call get_user_pages???), should i use something like switch_mm()??


 \ /
  Last update: 2009-06-16 20:09    [W:0.069 / U:0.184 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site