drbd: remove now unused seq_num member from struct drbd_request
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 8 Mar 2012 10:45:57 +0000 (11:45 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 9 May 2012 13:16:40 +0000 (15:16 +0200)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c

index fe5797f73d88bee101da33c7fc2b409a598836ba..2f3501169d688b16a2807817ee5ec4ca60dc846a 100644 (file)
@@ -712,7 +712,6 @@ struct drbd_request {
        struct list_head tl_requests; /* ring list in the transfer log */
        struct bio *master_bio;       /* master bio pointer */
        unsigned long rq_state; /* see comments above _req_mod() */
-       int seq_num;
        unsigned long start_time;
 };
 
index f6cfc45b862a02a4f1485a804a825d6c49a88964..02fd1e109cf63226e9c52a2f589493648f60d82a 100644 (file)
@@ -2814,8 +2814,7 @@ int drbd_send_dblock(struct drbd_conf *mdev, struct drbd_request *req)
 
        p.sector   = cpu_to_be64(req->sector);
        p.block_id = (unsigned long)req;
-       p.seq_num  = cpu_to_be32(req->seq_num =
-                                atomic_add_return(1, &mdev->packet_seq));
+       p.seq_num  = cpu_to_be32(atomic_add_return(1, &mdev->packet_seq));
 
        dp_flags = bio_flags_to_wire(mdev, req->master_bio->bi_rw);