diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-07-17 19:27:46 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-07-17 19:27:46 -0700 |
| commit | aa6d85aa9f161b95d002db247a6f319641928d40 (patch) | |
| tree | dbb448b39cbd80c8ddd387319d1ac360e5999807 /include | |
| parent | 074127b5eb6578e95561061de60f7ecaaa592694 (diff) | |
[PATCH] dm: 'wait for event' race
From: Joe Thornber <thornber@sistina.com>
There was a race associated with the 'wait for a significant event'
functionality.
Basically userland could read the status table, then wait for another
event, but the event it was waiting for could have occurred in the gap
between reading and waiting.
To solve this we assign identifiers to events, in order to successfully
wait for an event both userland and the kernel driver must be in agreement
about what the last event identifier was. If they don't agree the wait
call will return immediately, allowing userland to re-read the status and
see what it missed.
The new ioctl interface will use this properly.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
