lkml.org 
[lkml]   [2014]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v9 11/12] x86, mpx: cleanup unused bound tables
Instead of all of these games with dropping and reacquiring mmap_sem and
adding other locks, or deferring the work, why don't we just do a
get_user_pages()? Something along the lines of:

while (1) {
ret = cmpxchg(addr)
if (!ret)
break;
if (ret == -EFAULT)
get_user_pages(addr);
}

Does anybody see a problem with that?


\
 
 \ /
  Last update: 2014-11-06 23:01    [W:0.114 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site