From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.218 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796480367; b=vnQjccg0kU4GR6cHu3/pSfN1lPEQb5rQPqqeuFrti/C+TKlGrE2T+ltP9dYvcPuo5c1e lqjpm21oBZHku1dnRt4XMScXTZDZjlouff3WrWLLYz6F4zniR/ur71zfQFA8xH+oELVgl KluamRetWKkJJgZuT6X1weqfmMUReovscYSHANRDNZox7h7+1k55ld8PVmevZd9lOR0g4 hW+V/I3FU3DxjmmIOqkgi6MWkmrtmN0dpgyj9jD/F+Hi7nhpD/w7vZii3VRTe5hAzjbF0 WaQSFS1sVjD8ST4ojyQ5Gl0c2HG8Ke9JEvoSofm1McpMXw5JXz3YS6HA5pneaCvdIIw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796480367; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:To:Cc:Subject:Date:Message-ID: X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=zD1TAdVoTYX529xInwTezvb0IrnS6flkU64l/nhWZak=; b=DT7KIel2xGYRnFfju8xCQCh1j3k3+Ox0N0lfnuvk/SRrCk0ecDHT4WtuvGDgwhcqPkxY yGXdXlhW6Duv6Tsk9SZvLLahxKJ6EQfd8P4Osk/mpGXxx0r+k7lLbqbd5JQDS+523Msas qdbWCnntdfXK+iKorInIKvJNJjEIoShMeVwRU3PUcliFXuChkdAH30z1MIg8DhbjKihXs B29Xnuyou/zgwbj3D36oOsQQ7mQeykfWkAwlbW8p2yo9SLGqX7P3AVaUnDhEUYgrm97XD tHGbPmS8Fpubcj6i7Qzmwe1LcapkjZkzmQO2sgE1JqAjXGN+9W5wkSeDc9SD+LHb/yQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=MQ20JNsM; arc=none smtp.remote-ip=91.218.175.218 Received: from mta0.migadu.com (out-218.mta0.migadu.com [91.218.175.218]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92C91606A339 for ; Sat, 5 Dec 2026 14:19:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 92C91606A339 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=MQ20JNsM X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=xxG+IFjU0oTowU7hdTmadIWSyN0eY3ZjX6O5Ybj2K34=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796480364; v=1; x=1797085164; b=MQ20JNsMUjV9GA1jibFW7nl9ERIP2pb/6zE1en29Lrjlzhv6UrOlxGqeNlqGPjW101qJhcmZ BjmY4+CefU0Pf4OT+AvjZh2aRU/qAj79Z+Vbc8YX5HHaAJKl9IR8ckQ0jepSFB/dzE5tKJtwKeg dV2n5Pit6XwOQVnYWf6/Mpto= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 6168b378778d0151; Sat, 05 Dec 2026 14:19:24 +0000 X-Mizu-Trace-ID: 6168b378778d0151 X-Migadu-Flow: FLOW_OUT From: Md Haris Iqbal To: Jens Axboe , linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Christoph Hellwig , Jonathan Corbet , linux-doc@vger.kernel.org, Md Haris Iqbal Subject: [PATCH for-rc 0/3] block: error injection delay fixes Date: Sat, 5 Dec 2026 15:19:09 +0100 Message-ID: <20261205141912.37608-1-haris.iqbal@linux.dev> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Jens, Please consider these for the current rc. They fix the error injection delay_us option added in 6bd856cc9996 ("block: allow error injection rules to delay bios"). 1: fail a delayed bio if its disk was removed; unbinding sd while a bio is delayed oopses without it. 2: clear BIO_ERROR_INJECTED in bio_set_dev(), so it only covers the device the bio was delayed on. 3: copy the flag to bio_split() splits, so raid10's discard split isn't checked twice. Tested in a VM with null_blk, nvme-loop and scsi_debug. Claude helped with the fixes and was used to review them. I went through all of it and tested it myself. Md Haris Iqbal (3): block: fail a delayed bio if its disk was removed block: clear BIO_ERROR_INJECTED when a bio changes device block: copy BIO_ERROR_INJECTED to the split in bio_split() Documentation/block/error-injection.rst | 6 +++--- block/bio.c | 2 ++ block/error-injection.c | 10 ++++++++-- include/linux/bio.h | 4 +++- 4 files changed, 16 insertions(+), 6 deletions(-) -- 2.53.0