From: Li Dongyang <lidongyang@novell.com>
To: xen-devel@lists.xensource.com
Cc: owen.smith@citrix.com, JBeulich@novell.com, konrad.wilk@oracle.com
Subject: [PATCH V4 0/3] xen-blkfront/blkback discard support
Date: Thu, 1 Sep 2011 18:39:07 +0800 [thread overview]
Message-ID: <cover.1314872306.git.lidongyang@novell.com> (raw)
Dear list,
This is the V4 of the trim support for xen-blkfront/blkback,
Now we move BLKIF_OP_TRIM to BLKIF_OP_DISCARD, and dropped all
"trim" stuffs in the patches, and use "discard" instead.
Also we updated the helpers of blkif_x86_{32|64}_request or we
will meet problems using a non-native protocol.
And this patch has been tested with both SSD and raw file,
with SSD we will forward the discard command and with raw file,
the disk usage will reduce as we send discard request in the guest.
Changelog V4:
switch from BLKIF_OP_TRIM to BLKIF_OP_DISCARD
make blkback work with non-native protocol
do not abort connection in blkback if we can not setup discard in xenstore
Changelog V3:
rebased on linus's tree
enum backend types in blkif instead of flags in the interface header
more reasonable names in xenstore
move trim requesting handling to a separate function
do not re-enable interrupts unconditionally when handling response
set info->feature-trim only when we have all info needed for request queue
Changelog V2:
rebased on Jeremy's tree
fixes according to Jan Beulich's comments
Li Dongyang (3):
xen-blkfront: add BLKIF_OP_DISCARD and discard request struct
xen-blkfront: teach blkfront driver to handle discard requests
xen-blkback: discard requests handling in blkback driver
drivers/block/xen-blkback/blkback.c | 87 +++++++++++++++++++++++-----
drivers/block/xen-blkback/common.h | 93 ++++++++++++++++++++++++-----
drivers/block/xen-blkback/xenbus.c | 58 ++++++++++++++++++
drivers/block/xen-blkfront.c | 111 +++++++++++++++++++++++++++-------
include/xen/interface/io/blkif.h | 36 +++++++++++
5 files changed, 331 insertions(+), 54 deletions(-)
--
1.7.6
next reply other threads:[~2011-09-01 10:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-01 10:39 Li Dongyang [this message]
2011-09-01 10:39 ` [PATCH V4 1/3] xen-blkfront: add BLKIF_OP_DISCARD and discard request struct Li Dongyang
2011-09-01 10:39 ` [PATCH V4 2/3] xen-blkfront: teach blkfront driver to handle discard requests Li Dongyang
2011-09-01 15:25 ` Konrad Rzeszutek Wilk
2011-09-02 6:30 ` Li Dongyang
2011-09-02 13:28 ` Konrad Rzeszutek Wilk
2011-09-13 8:33 ` Li Dongyang
2011-09-13 13:15 ` Konrad Rzeszutek Wilk
2011-09-01 10:39 ` [PATCH V4 3/3] xen-blkback: discard requests handling in blkback driver Li Dongyang
2011-09-01 15:28 ` Konrad Rzeszutek Wilk
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=cover.1314872306.git.lidongyang@novell.com \
--to=lidongyang@novell.com \
--cc=JBeulich@novell.com \
--cc=konrad.wilk@oracle.com \
--cc=owen.smith@citrix.com \
--cc=xen-devel@lists.xensource.com \
/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;
as well as URLs for NNTP newsgroup(s).