From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 7DB6F449B1A for ; Fri, 31 Jul 2026 16:25:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785515116; cv=none; b=f8TRX8bxObA6KJoTbptQZWx6NOuI6wMNTiXa1A9ZMJhcf81e1IT/eIKnDhDn3efIXOEOODWB/OZsieSM4APOz5wpqOyE+N7DTE6zsZMxIfhMQoxCx7VVcst4dgCoAexnYskukbdoetDMGo6P4vBGpjjFfzVHWeQ1KVnsGeWhahA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785515116; c=relaxed/simple; bh=mmCa+FdRO+K+/IkGEw0Xm9vDEfMDaGW/xLX+tz93PlQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lF0ZdIeLFo/V1/KLJsp88gGkXtNGJ0UkAP++lXU4vz342QSNrPBQn/nRI871Mnt6uS5rcFU3nYxf5185NdoV3qs5+xQwYjNioFpc5YuCsfyvAi8b+47RTYkm83I4YJo+CivPLte9Tk9cRgTemHji3xlKJ2HMLzKY+kKFp1SCfJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CpHA6gPC; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CpHA6gPC" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-69c5fda04a8so2231052a12.1 for ; Fri, 31 Jul 2026 09:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785515113; x=1786119913; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=cpDVb8o2CW8R0i27JDWwyUc9WY4TavWFBH3ru2q2sb4=; b=CpHA6gPChMzv/eiKZ4yAxAYjqYXLfnwhF5kPcBFXFalkd/O2TA3UbPvTMWP9oNydgH E7xh8jBUWnWX5WduAuUJBQXunU3fXY6XTIWbpdEpIuM3rO0MbxPY6YjHMzuLufK4OzhO 7SnbuqvNFCTM/YMpRDT/MocHJFWx918x6AV3hp6GoLSa/w0vRBIhJw+x1W4Ec8aukbtL wxeARj1TDLlUon5VwQ3W0b0bG4bmG94G5PXbjD/i7gGRNNe+/sF2QPv0HntpGIdSUuHT eXxyMZAxgsckOzjCPkmW/plhUqzvu4gC/BNEfuS6zD0LxchtII1UKVJgFdhCe86TgIdN hf4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785515113; x=1786119913; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=cpDVb8o2CW8R0i27JDWwyUc9WY4TavWFBH3ru2q2sb4=; b=l1y7AczhYaxST9B5iXZc8Jx1p5yOAYjApZiBKqyLy6SfZPd60+rlpqnzo9Cgxd1OrP 8Kc+IJdJCfR/bfVPvF3Ik4yHfaZTssbBEnhsh65y/yCe6ZKtbzSGpTWQ3MRJA5sGngOg VOJajCGdSdPmlCxpmzpKuK4OABu+Po1CKeK4Zzopq8qw1DsJ2FAtfs52Z686flwfxyJZ x6Dy8c7AYHM2HaHXySSwRXD5K8XC2ud1tm9U3Vh4g6pDGt7SuLIJpawg8I2mq4wK9CMJ WARC2lTdV3GqeAr0KJJ3NQ5NzKUiArLcfYDqu9FObdw3WsFl11YGScgNJXHL0pYikR2x Xe3Q== X-Forwarded-Encrypted: i=1; AHgh+Rq2rbcSOppuLslz6oEsjvYRT+auwGsmp27jwnEi9ERC/kL5w7H5uAG1gqZHj8h6yeho5iVWKUD19rdTDg==@vger.kernel.org X-Gm-Message-State: AOJu0YzmLiyEr8uxzvKYFQrEYJJGC3IiFTWIm+XwK01aRAeU/aXj2ysT gQW6I413lkvLaGVuKyVt3uv8fjTosN7j6iTTcVc7OEhI2QaudLx/Koh/ X-Gm-Gg: AR+sD12QLsKkdPqxHvJLqBcoExTzg7DoEEy5HOU0xWuPDjaU3Vz/NhDCvhUeYq7myAI PxFdA+TqoaVnh0W0F1C/diol1tXR0OgVwpu7plWi9ZPCWCIQira6iv6GSd/LICRo5NATaKR3638 aKdv87WT849S2bZhbCFcPiMWzOyH6YNUizK1SQ5LRVTG6UqMy5QHV0Dp/Um4kbilp54A22jMF5C 7BZl//zkJ3mEflhaUarNh9BiZ9cZFGk1BOJ0v3qLwrk/muaAmQULNHTm6dcEoXqj/8CxrM51cl+ xeBzelHI8AnLTENfdKlxohCoG8lJUrSyFGLjLJMtQQeETolihVrYatTJRGjs4pmc30qFi0qEib7 cc9w0PwVzcknL0LV+Dz68LSjz1DPi7a8yR/3IMQPVlDHHmGl9/c8QfKDEEQ95K90imWtBg9MtU6 srMLATS3cY+uA/rc5hjbGd0W3y/MDCXskUIt7x4MwNl0WniEJpKys+G9ZCR8bjpXrEIRtF65B08 CpGLW7lGrPa5taBCboAK/M4/iadxZL5/yK9BFMn17oGcQ0l2N7OZII0/eTFJbsYRAyt X-Received: by 2002:a05:6402:4542:b0:68d:92cf:52f4 with SMTP id 4fb4d7f45d1cf-6a0a7c5e9f1mr180913a12.5.1785515112462; Fri, 31 Jul 2026 09:25:12 -0700 (PDT) Received: from fedora-laptop ([172.245.82.59]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6a09c655626sm2838383a12.22.2026.07.31.09.25.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 09:25:11 -0700 (PDT) Date: Fri, 31 Jul 2026 11:24:57 -0500 From: Ming Lei To: Yang Xiuwei Cc: Jens Axboe , Shuah Khan , linux-block@vger.kernel.org, linux-kselftest@vger.kernel.org, Caleb Sander Mateos Subject: Re: [PATCH] selftests: ublk: add rotating auto_buf index regression test Message-ID: References: <20260730010910.799346-3-yangxiuwei@kylinos.cn> <20260730024050.1062354-1-yangxiuwei@kylinos.cn> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260730024050.1062354-1-yangxiuwei@kylinos.cn> On Thu, Jul 30, 2026 at 10:40:50AM +0800, Yang Xiuwei wrote: > Batch AUTO_BUF_REG COMMIT must unregister the old auto_buf index before > storing the next one. Fixed per-tag indexing (A == B) masks bugs that > clear after overwriting io->buf. > > Add kublk --rotate_auto_buf so each tag alternates between two sparse > buffer indices, and test_batch_04.sh to exercise that path. Without the > driver fix, the request ref stays stuck and I/O hangs; the test uses a > short timeout and kills the ublk daemon to recover. With the fix, a > small write completes quickly. > > Signed-off-by: Yang Xiuwei Looks fine, Reviewed-by: Ming Lei BTW, this selftest patch should have been part of "[PATCH v2 0/2] ublk: fix auto buf reg ordering around uring_cmd" Thanks, Ming