From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.15 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796475325; b=snqIRMke6VEYBPjMcILEq+Yj0/iBaGhJUx/kBDv+E6MF+PECJDn36mSH2xbHWnL/YA9C JIy1i0RqG7dsz9VmHNHxpMn2l/MF/hyRZfX0WTGN7qsaIc78RmoIq3oL1ebWQtJgqT/9I ZAV+p5WU7F+uf3WtnHV6D3RnJur+u9s3As9RAFWq1L4SA17IQAFwMpQ3qJeINe6R/nVpL LMVhl/yrVoJzkjNWgR2On9vQgqV1GdF62enLHABrYzcc9jOBPu88Q+LauZpztqDTz7OC3 kf3EfIBi8ExoajXUNOntnD/lqcJjjN3+Gam4wxqtg7+KNlMMf66JJz+OyRVxVmbKRrA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796475325; 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=NAkxjhgkqokzX7C8kqrfhHxsMnOhRI0DwjStFMHDEdZmPoMIG/HhQP/XpxIxNZAdHaQY CQZcuP0q0r5gzT22Bm4DAQzeh6nzYArhKzw9awFgWGb7fVOkQwExK48I0PpcTE5cLhSe9 njZPWAGjh5IK41QyyYmY6l2aV3hnLibpeNiObA7r/0lqssJsZrKV6aNFc4p3ZYggPmTjS OtNGjAhizbOpxudrklnhfurWXubXo2nI8tNJ8zdECVYXXKhU4Q99LaJ4MaN/U/YeosXHZ x96OB36DcEsBvP76CM3+V9je/zVHQshqRUXcL8UeMx0oU7QeT1H/RkFNOtapJ5gZU0g== 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=fbTFgbu0; arc=none smtp.remote-ip=91.218.175.15 Received: from mta0.migadu.com (out-15.mta0.migadu.com [91.218.175.15]) (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 69B6B606A322 for ; Sat, 5 Dec 2026 12:55:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 69B6B606A322 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=fbTFgbu0 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=1796475322; v=1; x=1797080122; b=fbTFgbu0Kf72yrF3QpR06icGTSvmroJXqEOwvKpFVEQdr63cwtH37wd6KVbb2xeGZO1VaDcM BwUyPjpli97DNGBQUH3XAnJBnxBQTc0yr+CVXubmnII2bQGuEEy4qffixCK1FkjxWvlcqPa9XgW R7gyvX/mFGXkYomxHkAv0XNE= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id a355863bf056dd4c; Sat, 05 Dec 2026 12:55:21 +0000 X-Mizu-Trace-ID: a355863bf056dd4c 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 13:55:05 +0100 Message-ID: <20261205125510.29717-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