Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 159143 Details for
Bug 247265
race between loading xenblk.ko and scanning for LVM partitions etc.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Patch against RHEL 5.1 2.6.18-32.el5 kernel
blkfront_is_ready-RHEL5.1.patch (text/x-patch), 3.01 KB, created by
Richard W.M. Jones
on 2007-07-13 09:44:30 UTC
(
hide
)
Description:
Patch against RHEL 5.1 2.6.18-32.el5 kernel
Filename:
MIME Type:
Creator:
Richard W.M. Jones
Created:
2007-07-13 09:44:30 UTC
Size:
3.01 KB
patch
obsolete
>diff -ur kernel-2.6.18.orig/linux-2.6.18.x86_64/drivers/xen/blkfront/blkfront.c kernel-2.6.18/linux-2.6.18.x86_64/drivers/xen/blkfront/blkfront.c >--- kernel-2.6.18.orig/linux-2.6.18.x86_64/drivers/xen/blkfront/blkfront.c 2007-07-13 10:34:31.000000000 +0100 >+++ kernel-2.6.18/linux-2.6.18.x86_64/drivers/xen/blkfront/blkfront.c 2007-07-13 10:35:14.000000000 +0100 >@@ -340,6 +340,8 @@ > spin_unlock_irq(&blkif_io_lock); > > add_disk(info->gd); >+ >+ info->is_ready = 1; > } > > /** >@@ -815,6 +817,13 @@ > spin_unlock_irq(&blkif_io_lock); > } > >+int blkfront_is_ready(struct xenbus_device *dev) >+{ >+ struct blkfront_info *info = dev->dev.driver_data; >+ >+ return info->is_ready; >+} >+ > > /* ** Driver Registration ** */ > >@@ -833,6 +842,7 @@ > .remove = blkfront_remove, > .resume = blkfront_resume, > .otherend_changed = backend_changed, >+ .is_ready = blkfront_is_ready, > }; > > >diff -ur kernel-2.6.18.orig/linux-2.6.18.x86_64/drivers/xen/blkfront/block.h kernel-2.6.18/linux-2.6.18.x86_64/drivers/xen/blkfront/block.h >--- kernel-2.6.18.orig/linux-2.6.18.x86_64/drivers/xen/blkfront/block.h 2007-07-13 10:34:31.000000000 +0100 >+++ kernel-2.6.18/linux-2.6.18.x86_64/drivers/xen/blkfront/block.h 2007-07-13 10:36:01.000000000 +0100 >@@ -124,6 +124,7 @@ > struct gnttab_free_callback callback; > struct blk_shadow shadow[BLK_RING_SIZE]; > unsigned long shadow_free; >+ int is_ready; > > /** > * The number of people holding this device open. We won't allow a >diff -ur kernel-2.6.18.orig/linux-2.6.18.x86_64/drivers/xen/xenbus/xenbus_probe.c kernel-2.6.18/linux-2.6.18.x86_64/drivers/xen/xenbus/xenbus_probe.c >--- kernel-2.6.18.orig/linux-2.6.18.x86_64/drivers/xen/xenbus/xenbus_probe.c 2007-07-13 10:34:31.000000000 +0100 >+++ kernel-2.6.18/linux-2.6.18.x86_64/drivers/xen/xenbus/xenbus_probe.c 2007-07-13 10:35:14.000000000 +0100 >@@ -1100,6 +1100,7 @@ > { > struct xenbus_device *xendev = to_xenbus_device(dev); > struct device_driver *drv = data; >+ struct xenbus_driver *xendrv; > > /* > * A device with no driver will never connect. We care only about >@@ -1112,7 +1113,9 @@ > if (drv && (dev->driver != drv)) > return 0; > >- return (xendev->state != XenbusStateConnected); >+ xendrv = to_xenbus_driver(dev->driver); >+ return (xendev->state != XenbusStateConnected || >+ (xendrv->is_ready && !xendrv->is_ready(xendev))); > } > > static int exists_disconnected_device(struct device_driver *drv) >diff -ur kernel-2.6.18.orig/linux-2.6.18.x86_64/include/xen/xenbus.h kernel-2.6.18/linux-2.6.18.x86_64/include/xen/xenbus.h >--- kernel-2.6.18.orig/linux-2.6.18.x86_64/include/xen/xenbus.h 2007-07-13 10:34:31.000000000 +0100 >+++ kernel-2.6.18/linux-2.6.18.x86_64/include/xen/xenbus.h 2007-07-13 10:35:14.000000000 +0100 >@@ -104,6 +104,7 @@ > int (*uevent)(struct xenbus_device *, char **, int, char *, int); > struct device_driver driver; > int (*read_otherend_details)(struct xenbus_device *dev); >+ int (*is_ready)(struct xenbus_device *dev); > }; > > static inline struct xenbus_driver *to_xenbus_driver(struct device_driver *drv) >Only in kernel-2.6.18/linux-2.6.18.x86_64/include/xen: xenbus.h.orig
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 247265
:
159140
| 159143