]> www.infradead.org Git - users/jedix/linux-maple.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>
Wed, 19 Oct 2011 20:31:13 +0000 (16:31 -0400)
commitbb6cc5dd41e47db8d91c1b0623a620c71049df75
tree4e87f4875aaffcf06517885923e62000cc619674
parentc27f43d30e8d719509144c531ee8096d1f435d56
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