提交 5cdb0bf3 编写于 作者: L Lars Ellenberg 提交者: Philipp Reisner

drbd: remove now unused seq_num member from struct drbd_request

Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: NLars Ellenberg <lars.ellenberg@linbit.com>
上级 4b8514ee
...@@ -572,7 +572,6 @@ struct drbd_request { ...@@ -572,7 +572,6 @@ struct drbd_request {
struct list_head tl_requests; /* ring list in the transfer log */ struct list_head tl_requests; /* ring list in the transfer log */
struct bio *master_bio; /* master bio pointer */ struct bio *master_bio; /* master bio pointer */
unsigned long rq_state; /* see comments above _req_mod() */ unsigned long rq_state; /* see comments above _req_mod() */
int seq_num;
unsigned long start_time; unsigned long start_time;
}; };
......
...@@ -1808,7 +1808,7 @@ int drbd_send_dblock(struct drbd_conf *mdev, struct drbd_request *req) ...@@ -1808,7 +1808,7 @@ int drbd_send_dblock(struct drbd_conf *mdev, struct drbd_request *req)
return -EIO; return -EIO;
p->sector = cpu_to_be64(req->i.sector); p->sector = cpu_to_be64(req->i.sector);
p->block_id = (unsigned long)req; p->block_id = (unsigned long)req;
p->seq_num = cpu_to_be32(req->seq_num = atomic_inc_return(&mdev->packet_seq)); p->seq_num = cpu_to_be32(atomic_inc_return(&mdev->packet_seq));
dp_flags = bio_flags_to_wire(mdev, req->master_bio->bi_rw); dp_flags = bio_flags_to_wire(mdev, req->master_bio->bi_rw);
if (mdev->state.conn >= C_SYNC_SOURCE && if (mdev->state.conn >= C_SYNC_SOURCE &&
mdev->state.conn <= C_PAUSED_SYNC_T) mdev->state.conn <= C_PAUSED_SYNC_T)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册