Skip to contentSkip to conversation

request for review - DRBD multi volume support for 3.2

DISCUSSION Philipp Reisner 2 participants 3 messages Aug 8, 2011 – Aug 16, 2011 DRBD driver

lore
Share & tools
lore

Philipp Reisner

author maintainer
#0 lore raw

This is a request for review of drbd-8.4. I intend to send a pull request to Jens early next week, for his for-3.2/drivers branch.

I want to point out the idr_for_each_entry() macro, added to include/linux/idr.h. Though we use this macro extensively in the new DRBD code, it is not DRBD specific. I intend to leave it in this patch series, as the following patches depend on it.

The most noticeable change is the support for multiple replicated volumes in a single DRBD connection. Write-ordering is obeyed among all writes in all volumes in a single connection. This feature is really important for users who DRBD for mirroring over longer distances. (Protocol A).

The following changes since commit f963d270cb7bbb8eeb57901d02b22a493e664fd2:

cciss: add transport mode attribute to sys (2011-08-08 11:40:17 +0200)

are available in the git repository at:
git://git.drbd.org/linux-2.6-drbd.git for-jens
and the diffstat can be found below.

 drivers/block/drbd/Makefile        |    1 +
 drivers/block/drbd/drbd_actlog.c   |  702 ++++-----
 drivers/block/drbd/drbd_bitmap.c   |  296 +++-
 drivers/block/drbd/drbd_int.h      | 1250 ++++++--------
 drivers/block/drbd/drbd_interval.c |  177 ++
 drivers/block/drbd/drbd_interval.h |   40 +
 drivers/block/drbd/drbd_main.c     | 3372 ++++++++++++++---------------------
 drivers/block/drbd/drbd_nl.c       | 3332 +++++++++++++++++++++--------------
 drivers/block/drbd/drbd_nla.c      |   55 +
 drivers/block/drbd/drbd_nla.h      |    8 +
 drivers/block/drbd/drbd_proc.c     |   27 +-
 drivers/block/drbd/drbd_receiver.c | 3439 +++++++++++++++++++++---------------
 drivers/block/drbd/drbd_req.c      |  739 ++++-----
 drivers/block/drbd/drbd_req.h      |  185 +--
 drivers/block/drbd/drbd_state.c    | 1749 ++++++++++++++++++
 drivers/block/drbd/drbd_state.h    |  161 ++
 drivers/block/drbd/drbd_strings.c  |    1 +
 drivers/block/drbd/drbd_worker.c   |  974 ++++++-----
 drivers/block/drbd/drbd_wrappers.h |   10 +-
 include/linux/drbd.h               |   68 +-
 include/linux/drbd_genl.h          |  363 ++++
 include/linux/drbd_genl_api.h      |   55 +
 include/linux/drbd_limits.h        |   95 +-
 include/linux/drbd_nl.h            |  160 --
 include/linux/drbd_tag_magic.h     |   84 -
 include/linux/genl_magic_func.h    |  414 +++++
 include/linux/genl_magic_struct.h  |  277 +++
 include/linux/idr.h                |   11 +
 include/linux/lru_cache.h          |   67 +-
 lib/lru_cache.c                    |  357 +++--
 30 files changed, 10998 insertions(+), 7471 deletions(-)
 create mode 100644 drivers/block/drbd/drbd_interval.c
 create mode 100644 drivers/block/drbd/drbd_interval.h
 create mode 100644 drivers/block/drbd/drbd_nla.c
 create mode 100644 drivers/block/drbd/drbd_nla.h
 create mode 100644 drivers/block/drbd/drbd_state.c
 create mode 100644 drivers/block/drbd/drbd_state.h
 create mode 100644 include/linux/drbd_genl.h
 create mode 100644 include/linux/drbd_genl_api.h
 delete mode 100644 include/linux/drbd_nl.h
 delete mode 100644 include/linux/drbd_tag_magic.h
 create mode 100644 include/linux/genl_magic_func.h
 create mode 100644 include/linux/genl_magic_struct.h

Best,
Phil

Signature · 6 lines
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com

DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
#1 lore raw
Quoted 8 lines · Philipp Reisner

This is a request for review of drbd-8.4. I intend to send a pull request to Jens early next week, for his for-3.2/drivers branch.

I want to point out the idr_for_each_entry() macro, added to include/linux/idr.h.  Though we use this macro extensively in the new DRBD code, it is not DRBD specific. I intend to leave it in this patch series, as the following patches depend on it.

Quoted 4 lines

The most noticeable change is the support for multiple replicated volumes in a single DRBD connection.  Write-ordering is obeyed among all writes in all volumes in a single connection.  This feature is really important for users who DRBD for mirroring over longer distances. (Protocol A).

Does not build here. Is EXPORT_SYMBOL(lc_is_used) missing ?

drivers/block/drbd/drbd_main.c: In function 'drbd_buildtag':
drivers/block/drbd/drbd_main.c:3561:19: warning: the comparison will always evaluate as 'true' for the address of '__this_module' will never be NULL [-Waddress] drivers/block/drbd/drbd_nl.c:2463:12: warning: 'drbd_bmio_set_susp_al' defined but not used [-Wunused-function]
ERROR: "lc_is_used" [drivers/block/drbd/drbd.ko] undefined!
ERROR: "lc_try_lock" [drivers/block/drbd/drbd.ko] undefined!
ERROR: "drbd_nla_parse_nested" [drivers/block/drbd/drbd.ko] undefined!
ERROR: "drbd_nla_find_nested" [drivers/block/drbd/drbd.ko] undefined!

Fubo.

author maintainer
#2 lore raw

Am Donnerstag, 11. August 2011, 20:34:57 schrieb Fubo Chen:

Quoted 29 lines

On Mon, Aug 8, 2011 at 3:57 PM, Philipp Reisner

Quoted 8 lines · <[email protected]> wrote:

This is a request for review of drbd-8.4. I intend to send a pull request to Jens early next week, for his for-3.2/drivers branch.

I want to point out the idr_for_each_entry() macro, added to include/linux/idr.h. Though we use this macro extensively in the new DRBD code, it is not DRBD specific. I intend to leave it in this patch series, as the following patches depend on it.

Quoted 4 lines

The most noticeable change is the support for multiple replicated volumes in a single DRBD connection. Write-ordering is obeyed among all writes in all volumes in a single connection. This feature is really important for users who DRBD for mirroring over longer distances. (Protocol A).

Does not build here. Is EXPORT_SYMBOL(lc_is_used) missing ?

drivers/block/drbd/drbd_main.c: In function 'drbd_buildtag':
drivers/block/drbd/drbd_main.c:3561:19: warning: the comparison will always evaluate as 'true' for the address of '__this_module' will never be NULL [-Waddress] drivers/block/drbd/drbd_nl.c:2463:12: warning: 'drbd_bmio_set_susp_al' defined but not used [-Wunused-function]
ERROR: "lc_is_used" [drivers/block/drbd/drbd.ko] undefined!
ERROR: "lc_try_lock" [drivers/block/drbd/drbd.ko] undefined!
ERROR: "drbd_nla_parse_nested" [drivers/block/drbd/drbd.ko] undefined!
ERROR: "drbd_nla_find_nested" [drivers/block/drbd/drbd.ko] undefined!

Quoted 1 line

Fubo.

Hi Fubo,

I fixed the missing EXPORT_SYMBOLS, the missing drbd_nla_* and the unused drbd_bmio_set_susp_al() issues. I amended the changes into the commits where the fixes should be.

At you convenience, please retry:
git://git.drbd.org/linux-2.6-drbd.git for-jens

Best,
Phil

Signature · 6 lines
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com

DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.