Question about do_wp_page() and lock_page()

From: Larry Woodman
Date: Wed Jan 14 2009 - 16:32:20 EST


Why is it safe for do_wp_page() to call cow_user_page() without locking
the old_page first? If a Direct IO read is outstanding on the old_page
or its the buffer to the file_read_actor() cant its contents change
during the COW fault? Is this not a problem?

Larry Woodman


--
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/