lkml.org 
[lkml]   [2008]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] bsg : Add support for io vectors in bsg
Date
From
On Jan 10, 2008, at 3:46 PM, Pete Wyckoff wrote:

> I'm fine with read/write, except Tomo is against handling iovecs
> because of the compat complexity with struct iovec being different
> on 32- vs 64-bit. There is a standard way to do "compat" ioctl that
> hides this handling in a different file (not bsg.c), which is the
> only reason I'm even considering these ioctls. I don't care about
> compat setups per se.

That is what I was thinking. Is it really necessary to support
something like bsg for 32 on 64 bit? Yes, it is a userspace interface,
but it isn't the kind of thing that normal user programs would use. It
is a new interface for newly-written programs and I would expect those
to be native. At least it doesn't strike me as overly-restrictive for
that to be the case for this kind of interface.

> Is there another async I/O mechanism? Userspace builds the CDBs,
> just needs some way to drop them in SCSI ML. BSG is almost perfect
> for this, but doesn't do iovec, leading to lots of memcpy.


Precisely.

--
Mark Rustad, MRustad@gmail.com




\
 
 \ /
  Last update: 2008-01-10 23:37    [W:0.071 / U:1.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site