OSDN Git Service

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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 24 Mar 2012 14:04:36 +0000 (10:04 -0400)
commit3389bb8bf76180eecaffdfa7dd5b35fa4a2ce9b5
treedf274847cbd18b73bf45dde17dd17dd6a1e18a9b
parent4dae76705fc8f9854bb732f9944e7ff9ba7a8e9f
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