]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blkback: Disable DISCARD support for loopback device (but leave for phy).
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 13 Mar 2012 22:05:58 +0000 (18:05 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 14 Mar 2012 16:16:53 +0000 (12:16 -0400)
commita4d1685d2382e423ee4d66a9554454bf1b44f316
tree6f0a2f481b77e2d1a3ba277a34f02ca61866aa74
parent287070217cf5fab38e246e89c489c15f9146085d
xen/blkback: Disable DISCARD support for loopback device (but leave for phy).

Until we back-port the changes from 3.3 which alter the loopback device
to support the full gamma of discard attributes. Otherwise we have to
punch through loop device to retrieve the underlaying disk size and
do other nasty things to get the proper information.

Also there is the outstanding issue that Logical Volumes won't pass
through the DISCARD support, so in most cases we can't take advantage of
this code until that gets fixed.

Fixes Oracle BZ#13779884
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/xenbus.c