|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Remove dead code from blkback.
# HG changeset patch
# User akw27@xxxxxxxxxxxxxxxxxxxxxx
# Node ID dc8380497e98c1d562cb3d9b5f60b9972c1005bc
# Parent 6721abf6b16d6df6549f2f5b0a76468c10a71bee
Remove dead code from blkback.
Signed-off-by: Andrew Warfield <andrew.warfield@xxxxxxxxxxxx>
diff -r 6721abf6b16d -r dc8380497e98
linux-2.6-xen-sparse/drivers/xen/blkback/common.h
--- a/linux-2.6-xen-sparse/drivers/xen/blkback/common.h Sun Aug 21 11:41:45 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/common.h Sun Aug 21 12:24:21 2005
@@ -53,7 +53,7 @@
rb_root_t vbd_rb; /* Mapping from 16-bit vdevices to VBDs.*/
spinlock_t vbd_lock; /* Protects VBD mapping. */
/* Private fields. */
- enum { DISCONNECTED, DISCONNECTING, CONNECTED } status;
+ enum { DISCONNECTED, CONNECTED } status;
/*
* DISCONNECT response is deferred until pending requests are ack'ed.
* We therefore need to store the id from the original request.
diff -r 6721abf6b16d -r dc8380497e98
linux-2.6-xen-sparse/drivers/xen/blkback/interface.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkback/interface.c Sun Aug 21
11:41:45 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/interface.c Sun Aug 21
12:24:21 2005
@@ -7,7 +7,6 @@
*/
#include "common.h"
-#include <asm-xen/ctrl_if.h>
#include <asm-xen/evtchn.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
@@ -138,52 +137,6 @@
return 0;
}
-static void __blkif_disconnect_complete(void *arg)
-{
- blkif_t *blkif = (blkif_t *)arg;
- ctrl_msg_t cmsg;
- blkif_be_disconnect_t disc;
-
- /*
- * These can't be done in blkif_disconnect() because at that point there
- * may be outstanding requests at the disc whose asynchronous responses
- * must still be notified to the remote driver.
- */
- unmap_frontend_page(blkif);
- vfree(blkif->blk_ring.sring);
-
- /* Construct the deferred response message. */
- cmsg.type = CMSG_BLKIF_BE;
- cmsg.subtype = CMSG_BLKIF_BE_DISCONNECT;
- cmsg.id = blkif->disconnect_rspid;
- cmsg.length = sizeof(blkif_be_disconnect_t);
- disc.domid = blkif->domid;
- disc.blkif_handle = blkif->handle;
- disc.status = BLKIF_BE_STATUS_OKAY;
- memcpy(cmsg.msg, &disc, sizeof(disc));
-
- /*
- * Make sure message is constructed /before/ status change, because
- * after the status change the 'blkif' structure could be deallocated at
- * any time. Also make sure we send the response /after/ status change,
- * as otherwise a subsequent CONNECT request could spuriously fail if
- * another CPU doesn't see the status change yet.
- */
- mb();
- BUG_ON(blkif->status != DISCONNECTING);
- blkif->status = DISCONNECTED;
- mb();
-
- /* Send the successful response. */
- ctrl_if_send_response(&cmsg);
-}
-
-void blkif_disconnect_complete(blkif_t *blkif)
-{
- INIT_WORK(&blkif->work, __blkif_disconnect_complete, (void *)blkif);
- schedule_work(&blkif->work);
-}
-
void free_blkif(blkif_t *blkif)
{
blkif_t **pblkif;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Remove dead code from blkback.,
Xen patchbot -unstable <=
|
|
|
|
|