From nobody Wed Dec 17 00:14:16 2025 Received: from mail-oa1-f99.google.com (mail-oa1-f99.google.com [209.85.160.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4AC432857CA for ; Thu, 11 Dec 2025 05:16:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.99 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765430199; cv=none; b=R6X+a82f4PEHtVnC7uYmpaVs5eGbP758/smMtJvpkkrtSl9PvQDUasxUFa5VRlhjo/5OkVH16CjAP+JYiDOhZqQMnk8yy67ChFJNKjqOYSv3smBw/lgiEO4JbzeC2cipXMIImpa9hQ/PAb3sM33oEuLbBSa/v9mOIiVH8dM5/uo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765430199; c=relaxed/simple; bh=3BcnF+JpBAzJisKJ1uTv6+gdgkHDBERFf0MRmBcrFsg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RyKi7vA7fwOSwHYiF9nPcPyoxhRG8gPhmHByuuv8C2rWqQLsGHAyCrJz9XNc12oUBlUWF1MRo84HICWtlWVjGdFxsSCQlwtTMcwP8ubwM4KkMZKpodXIStxK4Aj7CP78PbCwMFObdwU8YLlowrdiAYO91XCOzkIttUszPs2oR1U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=eaunaJP0; arc=none smtp.client-ip=209.85.160.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="eaunaJP0" Received: by mail-oa1-f99.google.com with SMTP id 586e51a60fabf-3f5c34d7bc8so6950fac.2 for ; Wed, 10 Dec 2025 21:16:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1765430193; x=1766034993; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KfkHHTfuV1VgzCnNWDioK4GO8iHacIvGQ0SM0tegTgc=; b=eaunaJP0AaVysylgpySQADTE5qJoHyY/BvgeogFOj/1OJRedL1MnUPeDCk/o0UPCjS R79WSrUH8qcePzbGHwpn02BOe+dIIen+QA6cgefeYcqAeUA5OT6Ae0nwQ+4j813XSPOZ QmUQvifqCNvIv6IuhbyJs+vXhJ1P7MioAuviJTi8cqhn3JrWSQydg+9RBBowNYFhCG4T oCvnNsE6g5VqpIeRnJoaPB1zlKjwlppgJH02VNrMn1hcSIuKCJg9znRj3mx4YWdG1jZi TZf4HTg/dG9G8er3mJiD1FMO2lJ75hFNiBwAagFWQ4OpdGgJ9g/MMSHV6lvv3r01Uucz v2jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765430193; x=1766034993; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=KfkHHTfuV1VgzCnNWDioK4GO8iHacIvGQ0SM0tegTgc=; b=S+xJjFmHWv1QcaG+G443ZFcXokTOTpQnplUBXiSPPGWbx45uKabFPi62Xcu0oY8J1T zGZYZfgvUc/H5MVHzzke5vVsIPSPJCcedRam05j2uMPPjukaAxKZ37hjvpRbOLT/8GlO CGKC/brYZHP6Pr/n4+sfAIY9E3YiwoGswiYtfZfmD/XzIb4vsAJ4/4hCWhuGsbuZMmHT HJAUhIRvX0ClmxjV7fZNrfVorlum+X4n12e2MUS3f17Hi2oO2CVehiC3nyynQTAuB6Vz tyom60X8n+se9Hg+VctQe1IaW7pWz0xmlSiguhyRAkNujYoELNB9byFVeWylnP+26x86 FY+A== X-Forwarded-Encrypted: i=1; AJvYcCUp7u2+YKc2Fk9ezRGoWBQT9NVrzl7MYlBEdbTyj1Ep6xn6aI2IdcLigqeNXSxxa/Q+em3eQNxxss4HvaQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxipeF716zKfNOlwoin0NoxI7NvtNP4hmgdIdfWDD7DLj/HazLV GFiZ5mJrmWpcvUq+++JPWokg5JVl7SqgJA51AHIC7p0nBKIwEhod4rxgx3G2lxUS2P6oInD0YOJ E9Zq0LmCLINqD0eYr1EaeC6K+tRdt6ItVFdy+uPQS8mWlqcaqfwnE X-Gm-Gg: AY/fxX6QFXncDRhedVbqFuCCrdpbKgUe5gLtQQF6AlWxGm2j/9Moa9uKXHZo+7XCvgs t40pJ3R/9SgU7xLg7JwhEYKMexShLNiVuOQQSsKBSQ3Q8zzqseq4XYs4ObZU+yI5TPTglrSn7aq OclrtroNam/9p7qi1dNQg7Uv82XCasD7okw4fx4YWvwN70yKPNOKW6f0XzNg29gaQ33w+TrpZok i0Oa2eNC6Da+pibD2TDBbUjdojgkMY3DrdH9zUzg0/8uk0Dfn4xQ38onigqMjUG0ZiFsE9zDZIX zfMtH5Xu6jZ3Jy2pxASa57PnAgW39lzAQKYGUZ0dWJnjcvNoLSDEP7cg+ur5ER5Cxj7wZizBu9k Ae3Cyju01fi4vnUJpxcNrFBZ7CEc= X-Google-Smtp-Source: AGHT+IHb3ENL6XXKxhbIoayxGeujs4BLthUNPZTmBQ/rx5/q9AaDNCLok3CtBXuRYAP8aXa/nnfB2DRX5Mgb X-Received: by 2002:a05:6870:2484:b0:3e8:9d46:becc with SMTP id 586e51a60fabf-3f5dcdd2a38mr548792fac.3.1765430193474; Wed, 10 Dec 2025 21:16:33 -0800 (PST) Received: from c7-smtp-2023.dev.purestorage.com ([2620:125:9017:12:36:3:5:0]) by smtp-relay.gmail.com with ESMTPS id 586e51a60fabf-3f5d51aa8c5sm240626fac.15.2025.12.10.21.16.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Dec 2025 21:16:33 -0800 (PST) X-Relaying-Domain: purestorage.com Received: from dev-csander.dev.purestorage.com (unknown [IPv6:2620:125:9007:640:ffff::1199]) by c7-smtp-2023.dev.purestorage.com (Postfix) with ESMTP id 7220934079F; Wed, 10 Dec 2025 22:16:32 -0700 (MST) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id 6F9FEE41888; Wed, 10 Dec 2025 22:16:32 -0700 (MST) From: Caleb Sander Mateos To: Ming Lei , Shuah Khan Cc: linux-block@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Caleb Sander Mateos Subject: [PATCH 5/8] selftests: ublk: don't share backing files between ublk servers Date: Wed, 10 Dec 2025 22:16:00 -0700 Message-ID: <20251211051603.1154841-6-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251211051603.1154841-1-csander@purestorage.com> References: <20251211051603.1154841-1-csander@purestorage.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" stress_04 is missing a wait between blocks of tests, meaning multiple ublk servers will be running in parallel using the same backing files. Add a wait after each section to ensure each backing file is in use by a single ublk server at a time. Signed-off-by: Caleb Sander Mateos Reviewed-by: Ming Lei --- tools/testing/selftests/ublk/test_stress_04.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/ublk/test_stress_04.sh b/tools/testing= /selftests/ublk/test_stress_04.sh index 965befcee830..c7220723b537 100755 --- a/tools/testing/selftests/ublk/test_stress_04.sh +++ b/tools/testing/selftests/ublk/test_stress_04.sh @@ -29,23 +29,25 @@ _create_backfile 1 128M _create_backfile 2 128M =20 ublk_io_and_kill_daemon 8G -t null -q 4 -z --no_ublk_fixed_fd & ublk_io_and_kill_daemon 256M -t loop -q 4 -z --no_ublk_fixed_fd "${UBLK_BA= CKFILES[0]}" & ublk_io_and_kill_daemon 256M -t stripe -q 4 -z "${UBLK_BACKFILES[1]}" "${U= BLK_BACKFILES[2]}" & +wait =20 if _have_feature "AUTO_BUF_REG"; then ublk_io_and_kill_daemon 8G -t null -q 4 --auto_zc & ublk_io_and_kill_daemon 256M -t loop -q 4 --auto_zc "${UBLK_BACKFILES[0]}= " & ublk_io_and_kill_daemon 256M -t stripe -q 4 --auto_zc --no_ublk_fixed_fd = "${UBLK_BACKFILES[1]}" "${UBLK_BACKFILES[2]}" & ublk_io_and_kill_daemon 8G -t null -q 4 -z --auto_zc --auto_zc_fallback & + wait fi =20 if _have_feature "PER_IO_DAEMON"; then ublk_io_and_kill_daemon 8G -t null -q 4 --auto_zc --nthreads 8 --per_io_t= asks & ublk_io_and_kill_daemon 256M -t loop -q 4 --auto_zc --nthreads 8 --per_io= _tasks "${UBLK_BACKFILES[0]}" & ublk_io_and_kill_daemon 256M -t stripe -q 4 --auto_zc --nthreads 8 --per_= io_tasks "${UBLK_BACKFILES[1]}" "${UBLK_BACKFILES[2]}" & ublk_io_and_kill_daemon 8G -t null -q 4 --auto_zc --auto_zc_fallback --nt= hreads 8 --per_io_tasks & + wait fi -wait =20 _cleanup_test "stress" _show_result $TID $ERR_CODE --=20 2.45.2