Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f2JMdbv11437 for kaio-outgoing; Mon, 19 Mar 2001 14:39:37 -0800 Received: from horus.its.uow.edu.au (horus.its.uow.edu.au [130.130.68.25]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2JMdYM11434 for ; Mon, 19 Mar 2001 14:39:35 -0800 Received: from uow.edu.au (wumpus.its.uow.edu.au [130.130.68.12]) by horus.its.uow.edu.au (8.9.3/8.9.3) with ESMTP id JAA22759; Tue, 20 Mar 2001 09:39:26 +1100 (EST) Message-ID: <3AB68A9D.346346FC@uow.edu.au> Date: Mon, 19 Mar 2001 22:39:25 +0000 From: Andrew Morton X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.4.2-ac19 i686) X-Accept-Language: en MIME-Version: 1.0 To: Rajagopal Ananthanarayanan CC: kaio@oss.sgi.com Subject: Re: spotted in the kaio patch References: <3AB54B71.80DB2CC9@uow.edu.au> <3AB64E89.7374E767@sgi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-kaio@oss.sgi.com Precedence: bulk Rajagopal Ananthanarayanan wrote: > > ... > > > > > In kaio_set_slave_name(), do this: > > > > current->mm->arg_start = current->mm->arg_end = 0; > > > > and the slaves will look right in `ps'. > > Ah, so that's the trick, thanks. I had always wanted to fix this, > but never got around to it. Interestingly top reports the correct > names even without this fix. mm.. I assume `ps' sees an empty argv and then falls back to tsk->comm and puts "[]" around it. It seems that `top' uses ->comm[] all the time, unless you give it the 'c' option. > Just curious: did you find these bugs by running the patch or > by code examination? >From reading the code. It's *very* readable code. Thank you! It makes me want to read the raw I/O patch :) Question, please: - I note that Ben LaHaise's embryonic aio patch saves a copy_from_user by pinning the user pages down (map_user_kiobuf). I assume they're marked COW while I/O is in progress. Have you considered doing this? Do you expect there would be benefit (despite Linus' predictions)? Thanks.