]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen-blkfront: Handle discard requests.
authorLi Dongyang <lidongyang@novell.com>
Thu, 1 Sep 2011 10:39:09 +0000 (18:39 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 2 Sep 2011 13:31:56 +0000 (09:31 -0400)
commitcffc4b2ae0f66255d4289140905f9f989621477e
treeee093f8465c8331c2269421ed7dd9ff2db946d60
parent65d7b5e6783642248f54cea7870acc2e6e9c7307
xen-blkfront: Handle discard requests.

If the backend advertises 'feature-discard', then interrogate
the backend for alignment and granularity. Setup the request
queue with the appropiate values and send the discard operation
as required.

Signed-off-by: Li Dongyang <lidongyang@novell.com>
[v1: Amended commit description]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c