> Hi,
>
> Your patch looks fine but you realize, of course, that both your vwrite()
> and the old vread() walk through vmlist without any locking so results can
> be not only incosistent but disastrous (on SMP if list is modified at teh
> same time).
The more elegant way would be probably to remove all checks in these
functions, and instead protect the read/writes with a exception table
entry similar to copy_from/to_user. Only drawback is that it needs
per architecture support.
-Andi
-- This is like TV. I don't like TV.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/