diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-03-24 16:17:52 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 10:44:54 -0500 |
commit | 5a87d920f38fcafb790ddd03f0d8d1db56b268a8 (patch) | |
tree | 2cb73385b53793b89c86cc2dc7184aff625b53f0 /drivers/block/drbd/drbd_int.h | |
parent | fc56815c81ee12f8d5ce9af952159056556ea8ab (diff) |
drbd: Preallocate one page per drbd_socket as a send buffer
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 932ba0304353..9f1f0f56f71e 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h | |||
@@ -556,27 +556,6 @@ struct p_delay_probe93 { | |||
556 | 556 | ||
557 | #define DRBD_SOCKET_BUFFER_SIZE 4096 | 557 | #define DRBD_SOCKET_BUFFER_SIZE 4096 |
558 | 558 | ||
559 | union p_polymorph { | ||
560 | struct p_header header; | ||
561 | struct p_handshake handshake; | ||
562 | struct p_data data; | ||
563 | struct p_block_ack block_ack; | ||
564 | struct p_barrier barrier; | ||
565 | struct p_barrier_ack barrier_ack; | ||
566 | struct p_rs_param_89 rs_param_89; | ||
567 | struct p_rs_param_95 rs_param_95; | ||
568 | struct p_protocol protocol; | ||
569 | struct p_sizes sizes; | ||
570 | struct p_uuids uuids; | ||
571 | struct p_state state; | ||
572 | struct p_req_state req_state; | ||
573 | struct p_req_state_reply req_state_reply; | ||
574 | struct p_block_req block_req; | ||
575 | struct p_delay_probe93 delay_probe93; | ||
576 | struct p_rs_uuid rs_uuid; | ||
577 | struct p_block_desc block_desc; | ||
578 | } __packed; | ||
579 | |||
580 | /**********************************************************************/ | 559 | /**********************************************************************/ |
581 | enum drbd_thread_state { | 560 | enum drbd_thread_state { |
582 | NONE, | 561 | NONE, |
@@ -804,7 +783,7 @@ struct drbd_socket { | |||
804 | struct socket *socket; | 783 | struct socket *socket; |
805 | /* this way we get our | 784 | /* this way we get our |
806 | * send/receive buffers off the stack */ | 785 | * send/receive buffers off the stack */ |
807 | union p_polymorph sbuf; | 786 | void *sbuf; |
808 | void *rbuf; | 787 | void *rbuf; |
809 | }; | 788 | }; |
810 | 789 | ||