From owner-freebsd-hackers Thu Mar 4 18:12:21 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from iquest3.iquest.net (iquest3.iquest.net [209.43.20.203]) by hub.freebsd.org (Postfix) with SMTP id D506A15101 for ; Thu, 4 Mar 1999 18:12:18 -0800 (PST) (envelope-from toor@y.dyson.net) Received: (qmail 13906 invoked from network); 5 Mar 1999 02:11:58 -0000 Received: from dyson.iquest.net (HELO y.dyson.net) (198.70.144.127) by iquest3.iquest.net with SMTP; 5 Mar 1999 02:11:58 -0000 Received: (from toor@localhost) by y.dyson.net (8.9.1/8.9.1) id VAA00381; Thu, 4 Mar 1999 21:11:58 -0500 (EST) Message-Id: <199903050211.VAA00381@y.dyson.net> Subject: Re: aio_read/write pread/pwrite In-Reply-To: <19990304165818.A20680@proxydev.inktomi.com> from John Plevyak at "Mar 4, 99 04:58:18 pm" To: jplevyak@inktomi.com (John Plevyak) Date: Thu, 4 Mar 1999 21:11:58 -0500 (EST) Cc: hackers@FreeBSD.org From: "John S. Dyson" Reply-To: dyson@iquest.net X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Plevyak said: > > In investigating the lack of pread/pwrite, I found the bug > report kern/8011, and the patch therein. > > This patch mashes fd->f_offset around the > (*fp->f_ops->fo_read)(fp, &auio, fp->f_cred) and then resets > it to achieve a sort of poor-mans pread/pwrite. > > This breaks multi-threaded programs. The same problem exists > for aio_read/aio_write. > There are some things that need to be completed in the vn_read and vn_write routines. I suggest forwarding it to ALC (alc@cs.rice.edu) or Matt (dillon@backplane.apollo.com). I'll support them in the fix. -- John | Never try to teach a pig to sing, dyson@iquest.net | it makes one look stupid jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message