Lars Ellenberg
181286ad22
drbd: preparation commit, pass drbd_interval to drbd_al_begin/complete_io
...
We want to avoid bio_split for bios crossing activity log boundaries.
So we may need to activate two activity log extents "atomically".
drbd_al_begin_io() needs to know more than just the start sector.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:45:01 +01:00
Andreas Gruenbacher
7c96715aa8
drbd: _conn_send_cmd(), _drbd_send_cmd(): Pass a struct drbd_socket instead of a plain socket
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:59 +01:00
Philipp Reisner
438c8374ae
drbd: Do not segfault if a sync dependency reaches a diskless device
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:58 +01:00
Andreas Gruenbacher
5a87d920f3
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 >
2012-11-08 16:44:54 +01:00
Andreas Gruenbacher
8f7bed7774
drbd: Rename various functions from *_oos_* to *_out_of_sync_* for clarity
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:50 +01:00
Andreas Gruenbacher
99920dc5c5
drbd: Make all worker callbacks return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:43 +01:00
Andreas Gruenbacher
b2f0ab62ec
drbd: Temporarily change the return type of all worker callbacks
...
This helps to ensure that we don't miss one of them when changing their
return value semantics.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:43 +01:00
Andreas Gruenbacher
a896527c06
drbd: drbd_send_short_cmd(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:43 +01:00
Andreas Gruenbacher
6bdb9b0e23
drbd: drbd_send_dblock(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:42 +01:00
Andreas Gruenbacher
7b57b89d62
drbd: drbd_send_block(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:42 +01:00
Andreas Gruenbacher
73218a3c4c
drbd: drbd_send_oos(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:40 +01:00
Andreas Gruenbacher
db1b0b724e
drbd: drbd_send_drequest_csum(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:40 +01:00
Andreas Gruenbacher
6c1005e74d
drbd: drbd_send_drequest(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:39 +01:00
Andreas Gruenbacher
5b9f499c66
drbd: drbd_send_ov_request(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:39 +01:00
Andreas Gruenbacher
fa79abd893
drbd: drbd_send_ack_ex(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:38 +01:00
Andreas Gruenbacher
dd5161218b
drbd: drbd_send_ack(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:38 +01:00
Andreas Gruenbacher
04dfa13788
drbd: _drbd_send_cmd(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:31 +01:00
Andreas Gruenbacher
11b0be28e5
drbd: drbd_get_data_sock(): Return 0 upon success and an error code otherwise
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:29 +01:00
Lars Ellenberg
f399002e68
drbd: distribute former syncer_conf settings to disk, connection, and resource level
...
This commit breaks the API again.
Move per-volume former syncer options into disk_conf.
Move per-connection former syncer options into net_conf.
Renamed the remainign sync_conf to res_opts
Syncer settings have been changeable at runtime, so we need to prepare
for these settings to be runtime-changeable in their new home as well.
Introduce new configuration operations, and share the netlink attribute
between "attach" (create new disk) and "disk-opts" (change options).
Same for "connect" and "net-opts".
Some fields cannot be changed at runtime, however.
Introduce a new flag GENLA_F_INVARIANT to be able to trigger on that in
the generated validation and assignment functions.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-08 16:44:20 +01:00
Philipp Reisner
38fa9988fa
drbd: Do not modify the connection state with something else that conn_request_state()
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2012-11-04 00:16:26 +01:00
Philipp Reisner
81a5d60ecf
drbd: Replaced the minor_table array by an idr
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2011-10-14 16:48:01 +02:00
Philipp Reisner
0e29d163f7
drbd: Reworked the unconfiguring and thread stopping code
...
* Moved CONFIG_PENDING and DEVICE_DYING from mdev to tconn.
* Renamed drbd_reconfig_start() and drbd_reconfig_done() to
conn_reconfig_start() and conn_reconfig_done().
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2011-10-14 16:47:55 +02:00
Lars Ellenberg
9676c76097
drbd: fix a wrong likely(), updated comments
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2011-10-14 16:47:47 +02:00
Andreas Gruenbacher
fcefa62e4c
drbd: Rename drbd_endio_{pri,sec} -> drbd_{,peer_}request_endio
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2011-10-14 16:47:36 +02:00
Andreas Gruenbacher
fbe29dec98
drbd: Rename drbd_submit_ee -> drbd_submit_peer_request
...
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com >
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com >
2011-10-14 16:47:35 +02:00