Messages in this thread | | | Date | Fri, 5 Nov 1999 22:48:43 +0100 (CET) | From | Andrea Arcangeli <> | Subject | Re: Race in buffer code (Was Re: move block #A to block #B on a given device.) |
| |
On Fri, 5 Nov 1999, Mikulas Patocka wrote:
>What if user does cat /dev/hda1>/dev/null on mounted device while >filesystem driver does getblk? ... the buffer gets corrupted.
I was considering the case where the buffer returned by getblk is _just_ uptodate. If the block is just uptodate then all potential readers as us won't even try to start read-io and so the `cp /dev/? /dev/null` won't trigger any I/O and won't risk to invalidate our memcpy.
Andrea
- 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/
| |