All of lore.kernel.org
 help / color / mirror / Atom feed
From: Badari Pulavarty <pbadari@us.ibm.com>
To: Andrew Morton <akpm@osdl.org>
Cc: HOLZHEU@de.ibm.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] s390 hypfs fixes for 2.6.18-rc1-mm1
Date: Thu, 13 Jul 2006 07:31:00 -0700	[thread overview]
Message-ID: <44B65924.7060602@us.ibm.com> (raw)
In-Reply-To: <20060713022304.9291852d.akpm@osdl.org>

Andrew Morton wrote:
> On Wed, 12 Jul 2006 21:17:53 -0700
> Badari Pulavarty <pbadari@us.ibm.com> wrote:
>
>   
>> +static ssize_t hypfs_aio_read(struct kiocb *iocb, const struct iovec *iov,
>> +			      unsigned long nr_segs, loff_t offset)
>>  {
>>  	char *data;
>>  	size_t len;
>>  	struct file *filp = iocb->ki_filp;
>> +	/* XXX: temporary */
>> +	char __user *buf = iov[0].iov_base;
>> +	size_t count = iov[0].iov_len;
>> +
>> +	if (nr_segs != 1) {
>> +		count = -EINVAL;
>> +		goto out;
>> +	}
>>     
>
> err, "temporary" things tend to become permanent.  What's the real fix?
>   
I am not sure, if we really need to vectorize this method or not - 
meaning will this be ever called
with more than one items in the vector. 

Micheal, is it possible ? Can some one directly use AIO interface on 
hypfs ? If not, we can always
look at only first element and ignore rest of them. Otherwise, we need 
to iterate on all the elements
of the vector.

Thanks,
Badari



  reply	other threads:[~2006-07-13 14:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13  4:10 [PATCH] s390 hypfs fixes for 2.6.18-rc1-mm1 Badari Pulavarty
2006-07-13  4:17 ` Badari Pulavarty
2006-07-13  9:04   ` Cedric Le Goater
2006-07-13 16:48     ` Badari Pulavarty
2006-07-13  9:23   ` Andrew Morton
2006-07-13 14:31     ` Badari Pulavarty [this message]
2006-07-13 15:41       ` Michael Holzheu
2006-07-13 17:39         ` Badari Pulavarty
2006-07-14 10:23           ` Michael Holzheu
2006-07-13 13:44   ` Michael Holzheu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44B65924.7060602@us.ibm.com \
    --to=pbadari@us.ibm.com \
    --cc=HOLZHEU@de.ibm.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.