Messages in this thread | | | Subject | Redundant memset in AIO read_events | Date | Tue, 8 Jul 2003 16:17:12 -0700 | From | "Chen, Kenneth W" <> |
| |
OK, here is another one. In the top level read_events() function in fs/aio.c, a struct io_event is instantiated on the stack (variable ent). It calls aio_read_evt() function which will fill the entire io_event structure into variable ent. What's the point of zeroing when copy covers the same memory area? Possible a debug code left around?
- Ken <<aio.ent.patch>> [unhandled content-type:application/octet-stream] | |