From patchwork Thu Nov 28 14:30:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Liang X-Patchwork-Id: 13888091 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E65A13E02A for ; Thu, 28 Nov 2024 14:30:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732804244; cv=none; b=G0PTlCCPxjNPFfUaH72f5RIzQT3dFNVXQiCLoaGbJlhVTF0tjciHfYlIwzgsAWJhZuxs/9pFL7uuQV9l3pEqL5Og5qMzQYIFUCT+bx9nBnZQgzlVaVTIkK5iotJdngJ0otBV9wVlr9iV6dCxjOVtV7FEw+Z6jmJKKQcB4D6a8sA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732804244; c=relaxed/simple; bh=6ibzWyKb/TTa5uIwM07fC5om1B6A2kx9CIk8LNlpNpk=; h=MIME-Version:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=r+de5HfoMA0wUt400eW+beLvJ95idmN1LoQFsqfHZMFwTMOh1ahIvlfrpWIQYJ/fH1ppDb5sM+Wa9/7Kw9MjTvdxYnP814uRKKVFOoeluzpRMcaSP38M7Sspx9ruAAVszd62tUHfSxhCeAtwbamnvfllLceRXheIiedD10f/qcA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BasoSH+C; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BasoSH+C" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732804241; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=CHSThdW4z76o6ECwRZj7Hi6vHVlFrCVTcqiVYGRJntM=; b=BasoSH+COgZwAhX8Viev7SCBw5/n7Km1gxGp00ednUC/F6Xg6ENZ+C3diRW5QxarAPcAw9 J3Jifrj1nL1OzBKLwEBvZx0yMlyXDNbaTwG2xBeKx4mb/oSWNqVQcPPYGymtnLjy9Cqtf+ chC2Gnstfv9F6F8f7KGO7rXNPYIyim0= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-15-RfdmgEJ7N5-ULDwWCnsnkw-1; Thu, 28 Nov 2024 09:30:39 -0500 X-MC-Unique: RfdmgEJ7N5-ULDwWCnsnkw-1 X-Mimecast-MFC-AGG-ID: RfdmgEJ7N5-ULDwWCnsnkw Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-aa51a52a5a5so46326466b.2 for ; Thu, 28 Nov 2024 06:30:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732804238; x=1733409038; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CHSThdW4z76o6ECwRZj7Hi6vHVlFrCVTcqiVYGRJntM=; b=ropiitT+Vn+QVbESiUsY+EuvF6LRO0QwYm/obGVDpBMTrQKqCHw41u4Zhwg775eF4E 6fz2/Qu9gAygluCML8gfWliIAZo1ylUcfyIR5CjDWdtjjWFXJOnmQOI8icV1Zw/yLPLi 7ahPkjKqOYIKOCNyJtwjB/8KIv8J0bVTuOG8Wb4DshQp8xw7XKD2yxEU6OuW4LZ/Mpfs 3xHNGo5tYtMRQifJ38YPLmbE4i5JXFxRIzR35ZjvQYgNWYi+SceseAoGYS8S4ZPF4t7z Zkk2t4frY426jmZAa11OyxLH+BsbwQGRB0lO3pgZHMZ3zh5n8XcnvaH5y7YbMdBWn+pV aygg== X-Gm-Message-State: AOJu0YwLH/V8AfKTVwPNVJT57MXiwzzzAum5d1N20T+4IwaJeptbjJhr 2f4accPvMrjtJZlKY+wK5QSERIm45tsHGHxZPoby6J8LT6R/nYLAM7FcXGbk7ndrs6VT/OiaOps ZHOFIPZjcwizD1C+H8wEwGy3BDqLfEhPn+Imky/aQGfNR+ne1LAaf95R0UFwtJf6CMKS9vUtuy0 2XpwfjpMGtDkYTrxJPnQcSj2z/QdobxF0+xctnZhrJO9c2vf5O X-Gm-Gg: ASbGnctRnQ0n/42Ia7Cu9qVMxsuUpUVv9P1V1EVDzUM/oxcGe0EWp7ETrGHlKo5p5N0 dJKZebj0tikKfguJNQ6Ug+ebcsqwUKmmW X-Received: by 2002:a17:907:cb1d:b0:aa5:2d9a:1526 with SMTP id a640c23a62f3a-aa581093848mr460844266b.61.1732804236763; Thu, 28 Nov 2024 06:30:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGNDLSyOYAmSZdeLSn7SQnlA/JvyrRBmt2TwrG+f6/VuKcHZxrWsB0GARsXCaMwmJN3UhZnH6wUR28pRft6DA= X-Received: by 2002:a17:907:cb1d:b0:aa5:2d9a:1526 with SMTP id a640c23a62f3a-aa581093848mr460839766b.61.1732804235721; Thu, 28 Nov 2024 06:30:35 -0800 (PST) Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Frank Liang Date: Thu, 28 Nov 2024 22:30:24 +0800 Message-ID: Subject: [PATCH blktests] block/35: enable io_uring if it is disabled To: linux-block@vger.kernel.org, osandov@fb.com Cc: Changhui Zhong , Ming Lei , Libing He Enable io_uring to avoid below test failure. block/035 (shared tag set fairness) [failed] runtime ... 0.540s --- tests/block/035.out 2024-09-03 04:31:30.000000000 +0000 +++ /usr/local/blktests/results/nodev/block/035.out.bad 2024-11-25 17:30:10.726751452 +0000 @@ -1,2 +1,2 @@ Running block/035 -Passed +Failed (fio status = 2) Signed-off-by: Frank Liang --- tests/block/035 | 9 +++++++++ 1 file changed, 9 insertions(+) From d2d64b7ee418c48ab475e13c2081a149d02d7db4 Mon Sep 17 00:00:00 2001 From: Frank Liang Date: Thu, 28 Nov 2024 22:19:20 +0800 Subject: [PATCH] block/35: enable io_uring if it is disabled Enable io_uring to avoid below test failure. block/035 (shared tag set fairness) [failed] runtime ... 0.540s --- tests/block/035.out 2024-09-03 04:31:30.000000000 +0000 +++ /usr/local/blktests/results/nodev/block/035.out.bad 2024-11-25 17:30:10.726751452 +0000 @@ -1,2 +1,2 @@ Running block/035 -Passed +Failed (fio status = 2) Signed-off-by: Frank Liang --- tests/block/035 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/block/035 b/tests/block/035 index 4228dd0..f602e9a 100755 --- a/tests/block/035 +++ b/tests/block/035 @@ -55,6 +55,11 @@ test() { echo "Configuring null_blk failed (2/2)" return 1 fi + # enable io_uring when it is disabled + local io_uring_disabled=$(cat /proc/sys/kernel/io_uring_disabled) + if [ $io_uring_disabled != 0 ]; then + echo 0 > /proc/sys/kernel/io_uring_disabled + fi local fio_output=${RESULTS_DIR}/block/fio-output-block-035.txt fio --rw=randwrite --ioengine=io_uring --iodepth=64 \ --direct=1 --runtime="${runtime}" --time_based=1 \ @@ -66,6 +71,10 @@ test() { local fio_status=$? rmdir /sys/kernel/config/nullb/nullb* _exit_null_blk + # reset io_uring setting before exits test + if [ $io_uring_disabled != 0 ]; then + echo $io_uring_disabled > /proc/sys/kernel/io_uring_disabled + fi if [ $fio_status != 0 ]; then echo "Failed (fio status = $fio_status)" return -- 2.47.0