From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 0215242B728 for ; Thu, 2 Jul 2026 08:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782980507; cv=none; b=rsN1O2aGNJK93xwerZZTH8BPDf1Dtayu3tAz+DKQ4MDDhI41biY1O8V3C2gZDa6JhvYzwK+jfPoTqiCmISdi98oTPvEug6Fa83cUUgumGqbrE1Jw2yd2U5A0T9HuorguY8+TkYfPwubaEdq7vpiJS/8xvHOYMVJ2BrRmVL53rXw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782980507; c=relaxed/simple; bh=R4mp7V+YISkOypWb0SQxXjiw/iBRtLqjKB6U4228okw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j4nFgghguLzsx2/P1C1bWXfTDeEJ0Agb85pTF5tHW7bXuF+lryoQCl7Kg9uTEYMbh3EUaG89jZ6mPupwB5ZRiQ+Kd0WrUgQ8iRmMCH5Fk9EtQWCd2C2CK2nSiCST4o+DNtqMWUayW9a8gqEJsx36rCyo8m2zMxs1kwYUK8eQQYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=kuCy1KHz; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="kuCy1KHz" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2c7cfa17fedso15430135ad.3 for ; Thu, 02 Jul 2026 01:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1782980505; x=1783585305; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=jxRVo9aIbyDvvuZPFaTnF8c++ORfuni0RdSeL1BmfKU=; b=kuCy1KHzHoeS2zEmb+4FSTe9q4dN8DxeqHzlrHeFiGfr6pOA4wadlZkzN2gCvijbvy N+Jh5AUOz8BZjwQfwJEvHJI2CSuXfdNzBMNB9JhnNqWRRHGujDHeMIMjwVpbW4xFQ55B 9uAaQbKHY5tQo9lLaGdovLGaYaKNvzuamDnmo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782980505; x=1783585305; h=in-reply-to:content-transfer-encoding:content-disposition :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; bh=jxRVo9aIbyDvvuZPFaTnF8c++ORfuni0RdSeL1BmfKU=; b=hYmuDTJSemXGrM/OYVoFq5r09M4w/FxoyahNsS8wOYnT7wwXVA2BW9MnMhBGsI9SV0 NU10NZQ8qqAtpnWKp+27BONnMV5uYrmJEPnTrMloukmuHO6BEakJ+LX4M9NmZfBYE0EQ 2WhpSdoyuu4yd7lvCXSK+gc51wTdnN1r2aAfGXWZMcYF15DOfbBc/MjG7iY1o21aZKcz feZjDBjyCa/3ZtSl9vYTeHs0myjYkdEazNx0rpbqheSDT+X98MKtemqHAyrzF9aTMNLd ynQw3IVWcTn6MO80E0aA6yOnnGYzlXXNIXZj3lvxInF+T8M2gn1xI7wsRJISGed9ObWs a4lQ== X-Forwarded-Encrypted: i=1; AHgh+RqejTmu0z0K9Jtv5USipVNBWDwStyjelFdKrAB7tZ1ufU7L+fxqWXL7bmgj86GVfLQcNJhXwt+PHjI=@vger.kernel.org X-Gm-Message-State: AOJu0YzRK/I8Qyiyd2XbafJZ9UFqbTZ3kmlgdktPNtv9NPHAl+5dPdt/ 217bYMTi086e2sNOQrJ71yi8c+RNviiffqW415+JVy7Zq0Arvhn97QSSJNlnGNr3nXYkRUizclw URPgLvA== X-Gm-Gg: AfdE7cmvftyruQmmFckVDEWLTTyShBcb7y5PNlK8rYH9PERehQIlYp9fXY/l15H2alx n7kpm7lscHmVr2wQIJFNWx2HdJ3yLv+5ZwiFEW1Qgd0qzxL79SoJVEyBQpEBG3ABqDA0iLXIpvW kFFPCy1uhvQV0gugV1PU4H1+tzPNmHeOAMhbjJsp+fHWgmB4uqkSe0pNTnrvPdNmM1ZnPtO4uwr Tjezz17ijpW7dGgoEcUmHJNANLmmrvSYRWP5+So7bAVOwvGBEZg58/zxmLg/MLl6mF8U/S3u++d LrbDCCSKq6b20zVqD3TSqQJ8V1Cej3mjqLk2qBjeM+KAYSFbv12DlZiScvUQJFDB8QLOu1ndouB Hpp646mmYIudj7/vvchVpRM4IW68n3fAISCDQCGVn+2VvnUsYMZYRfnEkl4u7wjH1BlNvNEZtUR D2tKrG7Gfi8qUdtwR5M7e8PGfgN9HvOhuxFmf2mdLzXtmqb4/CzMr5 X-Received: by 2002:a17:902:d2c1:b0:2c9:aae1:a61a with SMTP id d9443c01a7336-2ca7e6bf4dcmr59316055ad.14.1782980505205; Thu, 02 Jul 2026 01:21:45 -0700 (PDT) Received: from google.com ([2a00:79e0:2031:6:4e88:f8c5:c424:2d65]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ca9a7c397asm10090435ad.0.2026.07.02.01.21.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 01:21:44 -0700 (PDT) Date: Thu, 2 Jul 2026 17:21:41 +0900 From: Sergey Senozhatsky To: Oliver Neukum Cc: Sergey Senozhatsky , Alan Stern , linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-kernel@vger.kernel.org, Tomasz Figa Subject: Re: [usb-storage] [RFC PATCH] usb: storage: uas: limit consecutive device resets in error handling Message-ID: References: <20260701040335.810297-1-senozhatsky@chromium.org> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On (26/07/02 10:08), Oliver Neukum wrote: > On 02.07.26 04:25, Sergey Senozhatsky wrote: > > > <4>[ 750.651133] rq: tag=0 hctx=0 op=WRITE sector=13860872 len=524288 age=76536 ms pid=11900 comm=image_burner state=D > > <4>[ 750.651205] rq: tag=1 hctx=0 op=WRITE sector=13865992 len=524288 age=76536 ms pid=11900 comm=image_burner state=D > > <4>[ 750.651263] rq: tag=2 hctx=0 op=WRITE sector=13863944 len=524288 age=76536 ms pid=11900 comm=image_burner state=D > > <4>[ 750.651320] rq: tag=3 hctx=0 op=WRITE sector=13862920 len=524288 age=76536 ms pid=11900 comm=image_burner state=D > > <4>[ 750.651379] rq: tag=4 hctx=0 op=WRITE sector=13861896 len=524288 age=76536 ms pid=11900 comm=image_burner state=D > > <4>[ 750.651437] rq: tag=5 hctx=0 op=WRITE sector=13864968 len=524288 age=76536 ms pid=11900 comm=image_burner state=D > > [..] > > <4>[ 812.091136] rq: tag=0 hctx=0 op=WRITE sector=13863944 len=524288 age=137976 ms pid=11900 comm=image_burner state=D > > <4>[ 812.091194] rq: tag=1 hctx=0 op=WRITE sector=13862920 len=524288 age=137976 ms pid=11900 comm=image_burner state=D > > <4>[ 812.091242] rq: tag=2 hctx=0 op=WRITE sector=13861896 len=524288 age=137976 ms pid=11900 comm=image_burner state=D > > <4>[ 812.091289] rq: tag=3 hctx=0 op=WRITE sector=13860872 len=524288 age=137976 ms pid=11900 comm=image_burner state=D > > <4>[ 812.091335] rq: tag=4 hctx=0 op=WRITE sector=13865992 len=524288 age=137976 ms pid=11900 comm=image_burner state=D > > <4>[ 812.091381] rq: tag=5 hctx=0 op=WRITE sector=13864968 len=524288 age=137976 ms pid=11900 comm=image_burner state=D > > This looks to me like the block layer keeps writing to the same sectors. > In other words the issue I see is with the block layer. Oh, this is just our simple blk-mq watchdog. Those are the same 5 stalled requests (WRITES), it's just they got reported twice - same tags, same sectors, etc. they just got older (age 78k ms -> 137k ms since submission). > Do you know what triggers the error handler at the very first timeß Unfortunately, no.