From patchwork Fri Feb 19 00:33:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junichi Nomura X-Patchwork-Id: 8355191 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7828BC0553 for ; Fri, 19 Feb 2016 00:35:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92413203F3 for ; Fri, 19 Feb 2016 00:35:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77193203E9 for ; Fri, 19 Feb 2016 00:35:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1947805AbcBSAfU (ORCPT ); Thu, 18 Feb 2016 19:35:20 -0500 Received: from TYO200.gate.nec.co.jp ([210.143.35.50]:52703 "EHLO tyo200.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946981AbcBSAfT convert rfc822-to-8bit (ORCPT ); Thu, 18 Feb 2016 19:35:19 -0500 Received: from tyo202.gate.nec.co.jp ([10.7.69.202]) by tyo200.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id u1J0ZITN016324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 19 Feb 2016 09:35:18 +0900 (JST) Received: from mailgate3.nec.co.jp ([10.7.69.192]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id u1J0ZEgP016723; Fri, 19 Feb 2016 09:35:14 +0900 (JST) Received: from mailsv.nec.co.jp (imss61.nec.co.jp [10.7.69.156]) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) with ESMTP id u1J0ZDd20896; Fri, 19 Feb 2016 09:35:13 +0900 (JST) Received: from mail01b.kamome.nec.co.jp (mail01b.kamome.nec.co.jp [10.25.43.2]) by mailsv.nec.co.jp (8.13.8/8.13.4) with ESMTP id u1J0YRDw016177; Fri, 19 Feb 2016 09:35:13 +0900 (JST) Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.135] [10.38.151.135]) by mail01b.kamome.nec.co.jp with ESMTP id BT-MMP-5595503; Fri, 19 Feb 2016 09:33:55 +0900 Received: from BPXM12GP.gisp.nec.co.jp ([10.38.151.204]) by BPXC07GP.gisp.nec.co.jp ([10.38.151.135]) with mapi id 14.03.0224.002; Fri, 19 Feb 2016 09:33:55 +0900 From: Junichi Nomura To: Mike Snitzer CC: device-mapper development , linux-scsi Subject: Re: dm-multipath test scripts Thread-Topic: dm-multipath test scripts Thread-Index: AQHRanBKUqtLlSz/RUCjLYVPGcKDg58x7qqA Date: Fri, 19 Feb 2016 00:33:54 +0000 Message-ID: <56C662F1.8070407@ce.jp.nec.com> References: <20151007053923.GA10749@xzibit.linux.bs1.fc.nec.co.jp> <20160218171745.GA15071@redhat.com> In-Reply-To: <20160218171745.GA15071@redhat.com> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.125.85] Content-ID: <4FBB0F237767E446B758976CFCFCB7D2@gisp.nec.co.jp> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Mike, On 02/19/16 02:17, Mike Snitzer wrote: > But unfortunately I cannot get either the scsidebug or tcmloop mode to > run against v4.5-rc4 > > For tcmloop, targetcli fails with: > "Could not create ISCSIFabricModule in configFS." Hmm, it sounds like there's unnecessary dependency in targetcli. > (fixed by enabling CONFIG_ISCSI_TARGET under TARGET_CORE) OK. > I'm seeing all tests fail due to fio verification failure. I'll need to > inspect this further.. > > But the most problematic test is ./tests/test_03_dm_failpath -- it seems > to actively break _any_ v4.5-rc kernel I try (with a never-ending flood > of messages like "device-mapper: multipath: Failing path 8:192."); I > haven't tried older kernels. It seems fail/recover cycle runs too fast for I/O to make any progress. I hit similar case and had to slow down the stress with attached patch. Please try this. Sorry for the inconvenience. > What is the last kernel version that your scripts have worked on? v4.4 worked fine. I'll check with v4.5-rc4 when I get a machine. > Taking a step back: > These scripts don't belong in Documentation/device-mapper/mptest/ (or > anywhere in the kernel tree for that matter). > > I'd really prefer it if we could port your scripts over to the > device-mapper-test-suite, see: > https://github.com/jthornber/device-mapper-test-suite Yes, I agree such a project is better place for this to live. diff --git a/lib/failpath_dm_message b/lib/failpath_dm_message index 1a3bcf8..5b8f28a 100755 --- a/lib/failpath_dm_message +++ b/lib/failpath_dm_message @@ -30,9 +30,11 @@ start_failpath_dm_message () { for m in $majs; do dmsetup message $MPNAME 0 "fail_path $m" done + sleep 1 for m in $majs; do dmsetup message $MPNAME 0 "reinstate_path $m" done + sleep 1 done & } --