Date: Thu, 11 Jul 2013 08:11:11 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Gleb Smirnoff <glebius@freebsd.org> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: hacking - aio_sendfile() Message-ID: <CAJ-Vmon3eCgx6%2BiAt3j7=EOZeh-xtQxazhOdMfy-FJbTPvjfYQ@mail.gmail.com> In-Reply-To: <20130711145119.GA8839@glebius.int.ru> References: <CAJ-Vmo=icr6bda%2BWMNUarc3WbdqJ%2BMdauX6kByxxdTx8oSovBg@mail.gmail.com> <20130711101720.GZ67810@FreeBSD.org> <CAJ-Vmomx6Vd50QpBZS2hq--OLMvwzC6Y6LS8rkN3hVxigghVnQ@mail.gmail.com> <20130711145119.GA8839@glebius.int.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11 July 2013 07:51, Gleb Smirnoff <glebius@freebsd.org> wrote: > On Thu, Jul 11, 2013 at 07:45:19AM -0700, Adrian Chadd wrote: > A> I reference the source/dest FDs in the queue method. Is that not good enough? > > I see. Should probably work, but needs testing. It's terrible - I'd think I should pass the file ref's into kern_sendfile() so I'm sure that the process hasn't close/dup'ed an FD in its place in the meantime. Is that better? -adrian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmon3eCgx6%2BiAt3j7=EOZeh-xtQxazhOdMfy-FJbTPvjfYQ>