From: Douglas Gilbert <dgilbert@interlog.com>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: James.Bottomley@HansenPartnership.com, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] sg: fix iovec bugs introduced by the block layer conversion
Date: Thu, 02 Apr 2009 23:11:50 -0400 [thread overview]
Message-ID: <49D57E76.1030800@interlog.com> (raw)
In-Reply-To: <20090403091215K.fujita.tomonori@lab.ntt.co.jp>
FUJITA Tomonori wrote:
> This is a fix for another fallout of the block layer conversion (sorry).
>
> This should be go into 2.6.28.y and 2.6.29.y.
>
> =
> From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> Subject: [PATCH] sg: fix iovec bugs introduced by the block layer conversion
>
> - needs to use copy_from_user for iovec before passing it to
> blk_rq_map_user_iov().
>
> - before the block layer conversion, if ->dxfer_len and sum of iovec
> disagrees, the shorter one wins. However, currently sg returns
> -EINVAL. This restores the old behavior.
>
> Cc: stable@kernel.org
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
prev parent reply other threads:[~2009-04-03 3:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 0:12 [PATCH] sg: fix iovec bugs introduced by the block layer conversion FUJITA Tomonori
2009-04-03 3:11 ` Douglas Gilbert [this message]
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=49D57E76.1030800@interlog.com \
--to=dgilbert@interlog.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=linux-scsi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox