Prev: [PATCH] panic: keep blinking in spite of long spin timer mode
Next: [PATCHv2 0/3] [RFC] AIO: Fix reference counting in aio_cancel_all() and io_cancel()
From: Sergey Temerkhanov on 27 May 2010 18:50 The attached files are respectively: - a kernel module which implements 4 pseudo-devices with different aio_read/aio_write methods: - aiotest0 simply returns -EIOCBQUEUED; - aiotest1 sets ki_cancel method and returns -EIOCBQUEUED; - aiotest2 sets KIF_CANCELLED flag and returns -EINTR; - aiotest3 sets ki_cancel method and returns -EIOCBQUEUED after 1 second; - a program test_aio.c which submits 1 AIO request and calls io_destroy() after 1 second timeout - a program test_aio.c which submits 1 AIO request and calls io_cancel() on that request immediately. -- Regards, Sergey Temerkhanov, Cifronic ZAO |