| To: | kaio@xxxxxxxxxxx |
|---|---|
| Subject: | Re: Finally got things right... ;-) (signals & threads in LInux) |
| From: | Christopher Smith <x@xxxxxxxx> |
| Date: | Wed, 04 Apr 2001 03:33:24 -0700 |
| In-reply-to: | <7310000.986262802@hellman> |
| Sender: | owner-kaio@xxxxxxxxxxx |
--On Monday, April 02, 2001 18:53:22 -0700 Christopher Smith <x@xxxxxxxx>
wrote:
Right now I've got this working by doing a small hack to the 2.4.3 kernel and the KAIO code. I'm going to tidy this up and maybe move part of the fixing into LinuxThreads (right now LinuxThreads does not use the new CLONE_THREAD flag and it should). Either way the patch is a complete hack, but it does serve as a demonstration of how efficient this code could be. As promised, I'm including the patch. Run this patch against 2.4.3 after applying the KAIO patch. Note that it also fixes a small problem compiling the patch against 2.4.3 (the last hunk of the patch covers it). I managed to make the patch work without using tgid, instead relying on the "mm" pointer in task_struct. It's too bad VM's don't have pointers to all the tasks which are using them (instead of that silly counter). Anyway, with this patch the code block I sent out will work, as will any application which wants to use real-time signals to queue up AIO completion notifications for another thread. Comments welcome. --Chris
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Finally got things right... ;-) (signals & threads in LInux), Christopher Smith |
|---|---|
| Next by Date: | aio_error() returning positive values???, Christopher Smith |
| Previous by Thread: | Finally got things right... ;-) (signals & threads in LInux), Christopher Smith |
| Next by Thread: | Re: Finally got things right... ;-) (signals & threads in LInux), Andrew Morton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |