Olaf Hering 1c8cad6c1b xen-blkfront: remove type check from blkfront_setup_discard
In its initial implementation a check for "type" was added, but only phy
and file are handled. This breaks advertised discard support for other
type values such as qdisk.

Fix and simplify this function: If the backend advertises discard
support it is supposed to implement it properly, so enable
feature_discard unconditionally. If the backend advertises the need for
a certain granularity and alignment then propagate both properties to
the blocklayer. The discard-secure property is a boolean, update the code
to reflect that.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2014-05-28 14:17:26 -04:00
..
2014-03-04 07:55:47 -08:00
2014-04-07 16:36:02 -07:00
2014-03-13 14:56:38 -06:00
2013-04-09 14:13:19 -04:00
2011-08-08 11:40:15 +02:00
2014-03-13 14:56:38 -06:00
2012-03-28 18:30:03 +01:00
2014-01-30 16:56:55 -08:00
2013-06-29 12:46:45 +04:00
2014-01-30 16:56:55 -08:00
2014-04-01 23:19:10 -04:00
2014-01-03 10:05:34 +01:00
2013-11-08 09:10:30 -07:00
2014-03-13 14:56:38 -06:00
2009-03-26 21:15:27 +01:00