[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] linux-2.6.18/blkback: failure of writing "feature-barrier" node is non-fatal


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxx>
  • From: "Jan Beulich" <JBeulich@xxxxxxxx>
  • Date: Wed, 14 Mar 2012 13:02:53 +0000
  • Delivery-date: Wed, 14 Mar 2012 13:03:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

This is an extension, and whether this is a requirement should be
decided by the frontend.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/drivers/xen/blkback/common.h
+++ b/drivers/xen/blkback/common.h
@@ -138,7 +138,7 @@ void blkif_xenbus_init(void);
 irqreturn_t blkif_be_int(int irq, void *dev_id, struct pt_regs *regs);
 int blkif_schedule(void *arg);
 
-int blkback_barrier(struct xenbus_transaction xbt,
-                   struct backend_info *be, int state);
+void blkback_barrier(struct xenbus_transaction, struct backend_info *,
+                    int state);
 
 #endif /* __BLKIF__BACKEND__COMMON_H__ */
--- a/drivers/xen/blkback/xenbus.c
+++ b/drivers/xen/blkback/xenbus.c
@@ -204,18 +204,15 @@ static int blkback_remove(struct xenbus_
        return 0;
 }
 
-int blkback_barrier(struct xenbus_transaction xbt,
-                   struct backend_info *be, int state)
+void blkback_barrier(struct xenbus_transaction xbt,
+                    struct backend_info *be, int state)
 {
        struct xenbus_device *dev = be->dev;
-       int err;
+       int err = xenbus_printf(xbt, dev->nodename, "feature-barrier",
+                               "%d", state);
 
-       err = xenbus_printf(xbt, dev->nodename, "feature-barrier",
-                           "%d", state);
        if (err)
-               xenbus_dev_fatal(dev, err, "writing feature-barrier");
-
-       return err;
+               xenbus_dev_error(dev, err, "writing feature-barrier");
 }
 
 /**
@@ -435,9 +432,7 @@ again:
                return;
        }
 
-       err = blkback_barrier(xbt, be, 1);
-       if (err)
-               goto abort;
+       blkback_barrier(xbt, be, 1);
 
        err = xenbus_printf(xbt, dev->nodename, "sectors", "%llu",
                            vbd_size(&be->blkif->vbd));



Attachment: xen-blkback-feature-barrier-non-fatal.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.