| Date | Mon, 1 Apr 2013 21:58:23 -0400 | | From | Theodore Ts'o <> | | Subject | Re: [PATCH 14/33] aio: make aio_read_evt() more efficient, convert to hrtimers |
| |
On Thu, Mar 21, 2013 at 09:35:35AM -0700, Kent Overstreet wrote: > Previously, aio_read_event() pulled a single completion off the ringbuffer > at a time, locking and unlocking each time. Change it to pull off as many > events as it can at a time, and copy them directly to userspace. > > This also fixes a bug where if copying the event to userspace failed, > we'd lose the event. > > Also convert it to wait_event_interruptible_hrtimeout(), which > simplifies it quite a bit.
Reviewed-by: "Theodore Ts'o" <tytso@mit.edu>
|