Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755747AbZDMLXA (ORCPT ); Mon, 13 Apr 2009 07:23:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753881AbZDMLWw (ORCPT ); Mon, 13 Apr 2009 07:22:52 -0400 Received: from mail-bw0-f169.google.com ([209.85.218.169]:64005 "EHLO mail-bw0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752734AbZDMLWv (ORCPT ); Mon, 13 Apr 2009 07:22:51 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=HsKRUhls8TaXGbIJUaQoaZjtY9ajXF+Pdli664DHnnKP0Jo4jRXRjij8qj5LXaBphb rhe2MnBlEkc77JoUJiunFyzkPL/VIykjMtr6HVkuzkMqW63eJpXdaVq5rnjQ9a1dHgtr BrVuFTd6L0PJNdABxrGBZqf8Ke98tC0vEIVJM= MIME-Version: 1.0 Date: Mon, 13 Apr 2009 13:22:49 +0200 Message-ID: Subject: dm-multipath and write request ordering From: Bart Van Assche To: LKML , Andi Kleen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1867 Lines: 37 Hello, Several people are using the dm-multipath software as follows: * Linux server A is using dm-multipath to access data stored on servers B and C via two iSCSI sessions -- one session between servers A and B and one session between servers A and C. * On servers B and C iSCSI target software exports a block device that is replicated between servers B and C. Round-robin load balancing will only work correctly in such a setup if the replication software knows the order in which write requests have been queued on the dm-multipath device. Since iSCSI uses the TCP/IP protocol, write requests generated by server A can arrive out-of-order on servers B and C. My questions are as follows: - Is it correct that round-robin load balancing can only work correctly in such a setup with proper support for write barriers in the device mapper ? - Did I understand it correctly that the current dm implementation only supports barriers when remapping a single underlying device ? - Are there any plans to add barrier support to dm-multipath ? This is where I obtained my information about device mapper from: [1] Jonathan Corbet, Multipath support in the device mapper, February 2005, http://lwn.net/Articles/124703/. [2] Andi Kleen, [PATCH] Implement barrier support for single device DM devices, February 2008, http://lkml.org/lkml/2008/2/15/125 [3] Stefan Bader, [2.6.23 PATCH 11/18] dm: disable barriers, July 2007, http://lkml.org/lkml/2007/7/11/432. [4] dm source code, http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.29.y.git;a=tree;f=drivers/md;h=e0a3c2abb32bcec01c192217cda3f085e91217f3;hb=HEAD. Bart. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/