* AIO for SG
@ 2003-11-08 7:05 Mark Lobo
2003-11-09 0:07 ` Douglas Gilbert
2003-11-09 8:24 ` Douglas Gilbert
0 siblings, 2 replies; 4+ messages in thread
From: Mark Lobo @ 2003-11-08 7:05 UTC (permalink / raw)
To: linux-scsi
Guys,
Is there a patch available which adds the aio
interface to SG? (aio_read, aio_complete etc)
TIA,
Mark
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: AIO for SG
2003-11-08 7:05 AIO for SG Mark Lobo
@ 2003-11-09 0:07 ` Douglas Gilbert
2003-11-09 8:24 ` Douglas Gilbert
1 sibling, 0 replies; 4+ messages in thread
From: Douglas Gilbert @ 2003-11-09 0:07 UTC (permalink / raw)
To: Mark Lobo; +Cc: linux-scsi
Mark Lobo wrote:
> Guys,
> Is there a patch available which adds the aio
> interface to SG? (aio_read, aio_complete etc)
Mark,
I have got one but it's against lk 2.5.69 . It is relatively
simple (i.e. supports aio_write and aio_complete but not
aio_read).
If I get time I'll send a patch against lk 2.6.0-test9 later
today.
Doug Gilbert
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: AIO for SG
2003-11-08 7:05 AIO for SG Mark Lobo
2003-11-09 0:07 ` Douglas Gilbert
@ 2003-11-09 8:24 ` Douglas Gilbert
2003-11-13 2:58 ` Mark Lobo
1 sibling, 1 reply; 4+ messages in thread
From: Douglas Gilbert @ 2003-11-09 8:24 UTC (permalink / raw)
To: Mark Lobo; +Cc: linux-scsi
[-- Attachment #1: Type: text/plain, Size: 853 bytes --]
Mark Lobo wrote:
> Guys,
> Is there a patch available which adds the aio
> interface to SG? (aio_read, aio_complete etc)
Mark,
I have ported the aio support from lk 2.5.69 to my latest
version of sg which I sent to this list a few days ago.
The 2 attachments:
1) incremental against my patch a few days ago. This makes
it simpler to see the changes associated with aio
2) against the version of sg found in lk 2.6.0-test9 (so
it includes my cdev and seqfile patches)
The sg3_utils-1.05 package found at http://www.torque.net/sg
has a file called sg_simple_aio.c ** in its "examples" directory.
You need libaio to link it. Links ok with libaio-0.3.92 but
libaio-0.3.93 gives undefines (seems to be related to i64, ppc
etc support added in 0.3.93, strange).
** beware of the "sleep(3)" before read() [best remove it].
Doug Gibert
[-- Attachment #2: sg_aio_260t9dpg.diff.gz --]
[-- Type: application/x-gzip, Size: 2832 bytes --]
[-- Attachment #3: sg_aio_260t9.diff.gz --]
[-- Type: application/x-gzip, Size: 8222 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: AIO for SG
2003-11-09 8:24 ` Douglas Gilbert
@ 2003-11-13 2:58 ` Mark Lobo
0 siblings, 0 replies; 4+ messages in thread
From: Mark Lobo @ 2003-11-13 2:58 UTC (permalink / raw)
To: dougg; +Cc: linux-scsi
Douglas,
Thanks, I will definitely try it out.
I had one question about the aio calls though. I was
looking through the kernel sources after applying the
patch, and then looked at the examples you have
provided. How does the io_setcallback work? The kiocb
and the aiocb structure had no way to specify a
callback function in the kernel/usermode. What exactly
does aio_complete do and how is the callback done?
Atleast until SG, there was no way of calling back,
didnt look anywhere else.How does it work from the
kernel?
TIA
Mark
--- Douglas Gilbert <dougg@torque.net> wrote:
> Mark Lobo wrote:
> > Guys,
> > Is there a patch available which adds the aio
> > interface to SG? (aio_read, aio_complete etc)
>
> Mark,
> I have ported the aio support from lk 2.5.69 to my
> latest
> version of sg which I sent to this list a few days
> ago.
>
> The 2 attachments:
> 1) incremental against my patch a few days ago.
> This makes
> it simpler to see the changes associated with
> aio
> 2) against the version of sg found in lk
> 2.6.0-test9 (so
> it includes my cdev and seqfile patches)
>
> The sg3_utils-1.05 package found at
> http://www.torque.net/sg
> has a file called sg_simple_aio.c ** in its
> "examples" directory.
> You need libaio to link it. Links ok with
> libaio-0.3.92 but
> libaio-0.3.93 gives undefines (seems to be related
> to i64, ppc
> etc support added in 0.3.93, strange).
>
> ** beware of the "sleep(3)" before read() [best
> remove it].
>
> Doug Gibert
>
>
> ATTACHMENT part 2 application/x-gzip
name=sg_aio_260t9dpg.diff.gz
> ATTACHMENT part 3 application/x-gzip
name=sg_aio_260t9.diff.gz
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-13 2:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-08 7:05 AIO for SG Mark Lobo
2003-11-09 0:07 ` Douglas Gilbert
2003-11-09 8:24 ` Douglas Gilbert
2003-11-13 2:58 ` Mark Lobo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).