blob: 9ed4302776ee1d7351b20abe604769f4d097e17b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
diff -uNr cluster-1.04.00.orig/gnbd-kernel/src/gnbd.c cluster-1.04.00/gnbd-kernel/src/gnbd.c
--- cluster-1.04.00.orig/gnbd-kernel/src/gnbd.c 2007-02-07 16:25:05.000000000 +0100
+++ cluster-1.04.00/gnbd-kernel/src/gnbd.c 2006-07-12 19:34:29.000000000 +0200
@@ -577,10 +578,10 @@
struct gnbd_device *dev;
blkdev_dequeue_request(req);
- dprintk(DBG_BLKDEV, "%s: request %p: dequeued (flags=%x)\n",
- req->rq_disk->disk_name, req, req->cmd_type);
+ dprintk(DBG_BLKDEV, "%s: request %p: dequeued (flags=%lx)\n",
+ req->rq_disk->disk_name, req, req->flags);
- if (!blk_fs_request(req))
+ if (!(req->flags & REQ_CMD))
goto error_out;
dev = req->rq_disk->private_data;
@@ -888,12 +890,12 @@
printk(KERN_CRIT "gnbd: sizeof gnbd_request needs to be 28 in order to work!\n" );
return -EIO;
}
- shutdown_req.cmd_type = REQ_TYPE_SPECIAL;
+ shutdown_req.flags = REQ_SPECIAL;
gnbd_cmd(&shutdown_req) = GNBD_CMD_DISC;
shutdown_req.sector = 0;
shutdown_req.nr_sectors = 0;
- ping_req.cmd_type = REQ_TYPE_SPECIAL;
+ ping_req.flags = REQ_SPECIAL;
gnbd_cmd(&ping_req) = GNBD_CMD_PING;
ping_req.sector = 0;
ping_req.nr_sectors = 0;
|