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 312441 Details for
Bug 250104
RHEL5 Kernel patches for blktap statistics
[?]
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]
Patch 1 for blktap statistics v2
linux-2.6.18-xen-blktap-stats-13325-1-v2.patch (text/plain), 3.16 KB, created by
Chris Lalancette
on 2008-07-23 09:54:48 UTC
(
hide
)
Description:
Patch 1 for blktap statistics v2
Filename:
MIME Type:
Creator:
Chris Lalancette
Created:
2008-07-23 09:54:48 UTC
Size:
3.16 KB
patch
obsolete
>diff -urp linux-2.6.18.noarch.orig/drivers/xen/blkback/xenbus.c linux-2.6.18.noarch.patch1/drivers/xen/blkback/xenbus.c >--- linux-2.6.18.noarch.orig/drivers/xen/blkback/xenbus.c 2008-07-17 06:56:53.000000000 -0400 >+++ linux-2.6.18.noarch.patch1/drivers/xen/blkback/xenbus.c 2008-07-17 06:58:51.000000000 -0400 >@@ -43,9 +43,30 @@ static int connect_ring(struct backend_i > static void backend_changed(struct xenbus_watch *, const char **, > unsigned int); > >+static int blkback_name(blkif_t *blkif, char *buf) >+{ >+ char *devpath, *devname; >+ struct xenbus_device *dev = blkif->be->dev; >+ >+ devpath = xenbus_read(XBT_NIL, dev->nodename, "dev", NULL); >+ if (IS_ERR(devpath)) >+ return PTR_ERR(devpath); >+ >+ if ((devname = strstr(devpath, "/dev/")) != NULL) >+ devname += strlen("/dev/"); >+ else >+ devname = devpath; >+ >+ snprintf(buf, TASK_COMM_LEN, "blkback.%d.%s", blkif->domid, devname); >+ kfree(devpath); >+ >+ return 0; >+} >+ > static void update_blkif_status(blkif_t *blkif) > { > int err; >+ char name[TASK_COMM_LEN]; > > /* Not ready to connect? */ > if (!blkif->irq || !blkif->vbd.bdev) >@@ -60,10 +81,13 @@ static void update_blkif_status(blkif_t > if (blkif->be->dev->state != XenbusStateConnected) > return; > >- blkif->xenblkd = kthread_run(blkif_schedule, blkif, >- "xvd %d %02x:%02x", >- blkif->domid, >- blkif->be->major, blkif->be->minor); >+ err = blkback_name(blkif, name); >+ if (err) { >+ xenbus_dev_error(blkif->be->dev, err, "get blkback dev name"); >+ return; >+ } >+ >+ blkif->xenblkd = kthread_run(blkif_schedule, blkif, name); > if (IS_ERR(blkif->xenblkd)) { > err = PTR_ERR(blkif->xenblkd); > blkif->xenblkd = NULL; >diff -urp linux-2.6.18.noarch.orig/drivers/xen/blktap/xenbus.c linux-2.6.18.noarch.patch1/drivers/xen/blktap/xenbus.c >--- linux-2.6.18.noarch.orig/drivers/xen/blktap/xenbus.c 2008-07-17 06:56:53.000000000 -0400 >+++ linux-2.6.18.noarch.patch1/drivers/xen/blktap/xenbus.c 2008-07-17 06:58:51.000000000 -0400 >@@ -92,9 +92,30 @@ static long get_id(const char *str) > return simple_strtol(num, NULL, 10); > } > >+static int blktap_name(blkif_t *blkif, char *buf) >+{ >+ char *devpath, *devname; >+ struct xenbus_device *dev = blkif->be->dev; >+ >+ devpath = xenbus_read(XBT_NIL, dev->nodename, "dev", NULL); >+ if (IS_ERR(devpath)) >+ return PTR_ERR(devpath); >+ >+ if ((devname = strstr(devpath, "/dev/")) != NULL) >+ devname += strlen("/dev/"); >+ else >+ devname = devpath; >+ >+ snprintf(buf, TASK_COMM_LEN, "blktap.%d.%s", blkif->domid, devname); >+ kfree(devpath); >+ >+ return 0; >+} >+ > static void tap_update_blkif_status(blkif_t *blkif) > { > int err; >+ char name[TASK_COMM_LEN]; > > /* Not ready to connect? */ > if(!blkif->irq || !blkif->sectors) { >@@ -110,10 +131,13 @@ static void tap_update_blkif_status(blki > if (blkif->be->dev->state != XenbusStateConnected) > return; > >- blkif->xenblkd = kthread_run(tap_blkif_schedule, blkif, >- "xvd %d", >- blkif->domid); >+ err = blktap_name(blkif, name); >+ if (err) { >+ xenbus_dev_error(blkif->be->dev, err, "get blktap dev name"); >+ return; >+ } > >+ blkif->xenblkd = kthread_run(tap_blkif_schedule, blkif, name); > if (IS_ERR(blkif->xenblkd)) { > err = PTR_ERR(blkif->xenblkd); > blkif->xenblkd = NULL;
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 250104
:
293926
|
293927
|
293928
|
293929
|
293930
|
293931
|
293932
|
293933
|
293934
| 312441 |
312442
|
312443
|
312444
|
312445
|
312446
|
312447