From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 BB7BF3A9DBA for ; Sun, 28 Jun 2026 14:24:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782656670; cv=none; b=Iy+u94CUK8iuYIwVSUG148W04fJju+J8deOtLCiHeaiQS1tu9iGH/NXpM/6W1aLat+Cwf/2wfW8K2+f3LKMLfwGIVTskIK9HWUmeNZC2svwf+wM2WRI2TL0O/bVWbZrvXQutnR0pJirVed1DIPvMfy/W8orO0qWAh2ZauCBjFrA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782656670; c=relaxed/simple; bh=zUz43ZH7VKchUSdgQ50Q0qRIyRBfS4U8Ixx9tFPlIpw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ioHkBqDCxJXReMsCck3UpMAhqfZK/yamSKr2JoCe+8TMOvzxW7YaSVHQn7zY1szCbdBmooM9GzaoiBT6yKcce1CM3BuXCbx1FMn3i6YbGOapKAzTMsLLmlHVoKLuDQRVFtqqZ3T6bnMtaQLzVPeHaSSQIGuP5eNmsNLGQnOb7Zc= 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=bwM4Kt+J; arc=none smtp.client-ip=209.85.128.50 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="bwM4Kt+J" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4936e85e0deso5712505e9.2 for ; Sun, 28 Jun 2026 07:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782656666; x=1783261466; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=4YcpIATYRtraK9yBXIVvQeJwZDE3/yv25GmcunhXyJQ=; b=bwM4Kt+JbPnhy79jbc4V//TYJ2klb8QlesBRKRmhGTVsMmU0uqIeoQMjyEWk5Au5ri HJTAu5e7pd2Qr3UcRvMZnsMVVCTJwa8hZhfuefmzOb1Nj0Iq/7SJ3gYrrdCz7ZHQFtwB fO5jPjwOb3UrhuOs7Brgq87MRiRJ2/2G9rWqI4qcReMr8IDM+OIBHUwdeqf1Ga5KwWHm ZG0etnygjmKHftF/T9fr9AEYuELHhhg00jhKp7eGG7So8fOu3o2UJJO1vqCI3fgrB/U+ cbh1m1R4PQo/qufBy9l8rhx/yrGI1aFnQzKXLH74RxEux1I57GX+RwuqoMAOtGJ5SqW/ A1WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782656666; x=1783261466; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4YcpIATYRtraK9yBXIVvQeJwZDE3/yv25GmcunhXyJQ=; b=EcEATZXCMqUV9G2jzqmQ/g3f9q6O1A09suLE3wG1W7WWHrRW7SqANt2jNVoRHsnF1s ATCvOApAA/bZYl6pAAYsphI8qHiGwWxvl5wCcnxuqMwMDabmZM4TIe/mqr6SM6qn8IfA sZ0C9I0bTQbYDhCtovTfrynlYLcq6+iaaWtmrVeTpWJNFm9QiBbTvw1Dtr4eUUbE8YQB ytByfUWG/8TYWJvbDFspTUB5YZU+wxVOnJ6hL+ycblIcpoiWeEr6VXtkQ11pVmFqAAOU ypoWCnO5HIcHFqs1fqCp5Gj8LEf8swgLgHOc4ty9hw+ngkUKW3VpUz1wVhzAAxd4ZEmW PSHQ== X-Forwarded-Encrypted: i=1; AFNElJ+NKS5sQp+RBteJAtDY4x3OWd+0Gsmd9keWrHT4EOJvm2pPwAcCbAfUpiQdD3s8OxKwHE7a2s/1rH2CKro=@vger.kernel.org X-Gm-Message-State: AOJu0YxdFPeD8D/qiQ0GNCQOprpS5B478DZS/I+MD/4d/Vhehy7+NOLU spJjfv05et78ANtuk5awprb3Sd/1nfb7XEdB7xFgxQpWA0/K14gWtXng X-Gm-Gg: AfdE7cnpdG7Vae9p39415R44QCxPWjJ9r76w4sMlujosRKJqY+NJ1IIYkuIPStv69VV 0qPD/owb/NuC3OfZ9vqZ1rX/5c0hfJQw0l8yOfqCTJua+2zwlIHutgMo0u06HtCwDPM+Anap6QU 61apJhkn0488zgw1xV8XH0CWZP9bMwUtTypOns7ZmrRxlDC4UOdEpkgUWtzVVNdr0SI/WVZH2q4 mbOIzxHY2BO7cOZ0JUOmZL2fGNJdeJ8klWUWWElQN85KwUSIZinDczkw/bdc4/pHmAIcVhqpKOQ 8NPeQgyA/yxfRRDyeZc36jJvXZWhbQc6bgQK88yVj9wveBsCO53k+IyuIVdUuF8cIpedWQ3t+sK jiwa+VbqRjHxeBVxrbfnPtPbW2HgHgVxJn1mAjKmDUC96QQHGejTwzt4HY8CnnHVxBstF/bMPEe IcnZ+FMK+DQK76BUbcp++wgir0fQupBUdvlWgc1qrhfKrk89t2KOqZEvi5VCRmH7cOnBNL7COUa FI7oF8= X-Received: by 2002:a05:600c:1d0e:b0:492:2f59:4969 with SMTP id 5b1f17b1804b1-49266899d40mr209889975e9.22.1782656665773; Sun, 28 Jun 2026 07:24:25 -0700 (PDT) Received: from yocto.rz.uni-frankfurt.de (cb-8021x-nat-134-108.net.uni-frankfurt.de. [141.2.134.108]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4728072189asm7819927f8f.30.2026.06.28.07.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2026 07:24:24 -0700 (PDT) From: Abd-Alrhman Masalkhi To: song@kernel.org, yukuai@fygo.io, magiclinan@didiglobal.com, xiao@kernel.org, axboe@kernel.dk, vverma@digitalocean.com, john.g.garry@oracle.com, martin.petersen@oracle.com, abd.masalkhi@gmail.com, linux-kernel@vger.kernel.org Cc: linux-raid@vger.kernel.org Subject: [PATCH v2 0/7] md/raid10: fixes, atomic write handling, and error-path cleanup Date: Sun, 28 Jun 2026 14:24:13 +0000 Message-ID: <20260628142420.1051027-1-abd.masalkhi@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This v2 of series contains a mix of bug fixes and cleanups for RAID10, along with a related atomic write fix for RAID1. Changes in v2: - Expand the commit message to explain why the allow_barrier()/wait_barrier() pair is no longer needed. - Drop the early atomic write split check from raid1_write_request(). - Advertise the atomic write size limit via queue limits. - Disable write-behind instead of failing atomic writes when the BIO_MAX_VECS limit is encountered. - Drop the early atomic write split check from raid10_write_request() and rely on queue limits instead. - Fix a compilation error (bi -> bio). - Link to v1: https://lore.kernel.org/linux-raid/20260623072456.333437-1-abd.masalkhi@gmail.com/ Thanks, Abd-alrhman, Abd-Alrhman Masalkhi (7): md/raid10: fix r10bio leak in raid10_write_request() error paths md/raid1: advertise atomic write limits and handle runtime constraints md/raid10: consistently fail atomic writes that require splitting md/raid10: remove unnecessary barrier around bio_submit_split_bioset() md/raid10: replace wait loop with wait_event_idle() md/raid10: simplify write request error handling md/raid10: simplify read request error handling drivers/md/raid1.c | 36 +++++++------- drivers/md/raid10.c | 118 +++++++++++++++++++++----------------------- 2 files changed, 74 insertions(+), 80 deletions(-) -- 2.43.0