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>
Thu, 13 Oct 2011 13:48:31 +0000 (09:48 -0400)
commited30bf317c5ceb25166cdbce3e0b35e33c82b509
tree112e4e184a29e64b618f83da873333abae25f11e
parentb3cb0d6adc4bbc70b5e37e49a6068e973545ead7
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