Re: [PATCH v9 11/12] x86, mpx: cleanup unused bound tables

From: Dave Hansen
Date: Thu Nov 06 2014 - 16:50:10 EST


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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/