History

pipe: Add notification lossage handling

Add handling for loss of notifications by having read() insert a loss-notification message after it has read the pipe buffer that was last in the ring when the loss occurred. Lossage can come about either by running out of notification descriptors or by running out of space in the pipe ring.

David Howells committed 6 years ago

Commit e7d553d1 parent 8cfba764 files · +40 −0Browse files

Showing the changes to kernel (1 of 4 files). Show all

Unified · Split

kernel/watch_queue.c+2−0
@@ -132,6 +132,8 @@ out: · 131 unmodified lines
132 return done;132 return done;
133 133
134lost:134lost:
135 buf = &pipe->bufs[(head - 1) & mask];
136 buf->flags |= PIPE_BUF_FLAG_LOSS;
135 goto out;137 goto out;
136}138}
137 139

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t