xen/blkback: Make optional features be really optional.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 14 Mar 2012 17:04:00 +0000 (13:04 -0400)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 15:02:57 +0000 (20:02 +0530)
commitac38715730c4d0541d50adff703073e298f41ca3
treee831aded10de3e836445807d67e2b5880d878505
parent1196b41d5359a14a3b72d37261b38c1e8faa948c
xen/blkback: Make optional features be really optional.

They were using the xenbus_dev_fatal() function which would
change the state of the connection immediately. Which is not
what we want when we advertise optional features.

So make 'feature-discard','feature-barrier','feature-flush-cache'
optional.

Suggested-by: Jan Beulich <JBeulich@suse.com>
[v1: Made the discard function void and static]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/xenbus.c