From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796057680; b=KfjvjOvKIGAHHK2LcAvc4+H6rk6WxDQZ3iHpF6JaZTKIDKB6B8kwt4oxxp6iaenoqyR7 zTQSRQv7TE7/9sBbgUPH4MKRoRmuIJqOUch2UdIELO43FPwiAjswsjsFLel/po+SmB4bv 6La8Wi6qcuxi5Ijyx0bXJ5icgKXwlGjyjM+pLhzEzUBmQsNjTKVpTbRRnpsnzn/bim26N iAjFK8Bsn1gOi9jorndW0FLNJp79kCfvr2uLcDb5NMAM9XnMbgcGcGwOxb7qljCnZ1T5I YrszQ0cSb1CUPXU4GZwqvhs0NyC45waFHffOfT9MFmRaXHqjOgx0051O1QgpXHYccgw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796057680; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=dFmE5sWWq5W68WMiznxpJULQc/V0LBUujxISXwuYs1A=; b=XsyEGnGuP2cPRMpH/YCP4nn33W/+awyt3JI79ujTJsUkJ1ZcIXQpBA4WQOe2SI/AgCtW NiwhRaU92KSULNwfBApF0jdNQz2d5lj8oxiaQFjknyR9GQldv3pYO2jd0jeFDb0Zg0NZd lZMSvmQNH5NeeKoKrYcjErmCC4icCsiwHTkUbDhSd0tjHAdbJHoIW1hi+JfEP5jHvzjZK NueDLpdXkKK4mlDatZivkafo5EGdeeQwzpE+8JpvB2NCZiaMwqWQNuVnwJNk8Fxele1mV K0i774fhptD5Ek9VJRPiLjDoxmLcutSXlQpfmC6Yjs7y7LF3C1HvIFIXUFD8BsNLZuQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Lo9dFXc7; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b="eQ+N/EiM"; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01A03606A31C for ; Mon, 30 Nov 2026 16:54:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 01A03606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Lo9dFXc7; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=eQ+N/EiM DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796057680; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dFmE5sWWq5W68WMiznxpJULQc/V0LBUujxISXwuYs1A=; b=Lo9dFXc7k1PpcMuihcRiZZwRJiF1mvWP4i9FOF8PPFZ+2E/MXYgqdwJtDaD5vSzM6l4amv JgjeEEdR12Z6AIMIpg3kpt/LPUJNYYbMhYDmCQih4IPv1zeTM+wR5m54u4w5WtDnnR2D9j bYlQZH3I1x6SzpGt+3QfdwE+po6LNhA= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-145-I43d-FvAPK2awIGArxYpUg-1; Mon, 30 Nov 2026 16:54:36 +0000 X-MC-Unique: I43d-FvAPK2awIGArxYpUg-1 X-Mimecast-MFC-AGG-ID: I43d-FvAPK2awIGArxYpUg_1796057675 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-c504bdea834so759902566b.1 for ; Mon, 30 Nov 2026 08:54:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796057675; x=1796662475; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=dFmE5sWWq5W68WMiznxpJULQc/V0LBUujxISXwuYs1A=; b=eQ+N/EiMGMmsqJfokfnSv+LNpC9CDoxhofJrQ6KIUmoTgKmzWrO3Zb56P/dzvl+k4l NhMPB25ivjobZs8zFFKJgCPGGanYuUu4PVHDs5Nm55Zo0zTMFihNuISFP4frfXMf5Iq2 Tx0RIpbTmxZgRL+/Fg9N6fLTFFv+6xeEuQE0ACgSnLH6TzYU0z/lDaDyGMoXTyM9VE2c /ejaedqCZ3unKKsCzpAhk/InFCH5IE1TmvvIs8x8/QtZFXi9tlkTluP01wTYMGHENNjY fsfy5WmKNKNh1tC8kDS+PDI2J6BLXzdOCDk0Z383exDL4Wr1ZQPOyej47qu2jNA2f5sk 6QOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796057675; x=1796662475; h=content-transfer-encoding:mime-version:references:in-reply-to :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=dFmE5sWWq5W68WMiznxpJULQc/V0LBUujxISXwuYs1A=; b=BIBio8vSIVu8rYFl1j6KfVxvS5GSZn5cqCdT5Ge9LU/M+scCRBLVmN3PeuJMEBJU7y Mqb2ymKFdCanUal2671sgHS9mmyUn3vE4H0n5H4S6hNCzFR9PRDUwVWIoC/2XL5P4lpc EgklTM+v+6uatyRVd00DSuftTLZ3Ygw23notoK4qR9TH709dglXrdOqdzLcbNzDXa20s BpHWUOTnpzI8EDk7edywnbKFe2mozopt2WXU3wCdo4uuP5ZG+YdUaiXA3wwZeWLaDbWb jLKXqSBdtoU5l4JuhpvtalT81lFAQQYvhBvNA2zY79SXzyXnCJ7HVLrviJQ25hybPcp2 Yw0g== X-Forwarded-Encrypted: i=1; AL+hErHaQBiE9S1JTjteQ+f5LVCotltxFG7IYmDihUnKvURuhccSv8sOM86zd/rnAz9JkEOwpcp6C9mp5q5OKVo=@vger.kernel.org X-Gm-Message-State: APuU4Z+D7hG9BVtGWRXWsWl4bBfI+OOGK8nqe9+1Rr3VcqFyfnxJxQ4b 8nEUPo9FkN1Xy9d917yhzizL86Ziw4kaUzYf1MBFw1k1V0+mXwCjiQgzv+BjlvWv21uNGL50ReJ FTxaARQe3LSLU/9RyOY6JSlP6fJnM+6ZkAeu1tQDe0vgJMmKIEhwGPv6AFrGbS7ZrLA== X-Gm-Gg: AZFdTZcu8of5OxIHtB5Fqu+B/3JQ8Fbq9adU81pRQhObqModnjRZS/5lOplfUNk3nW0 W03/Ju/7g1/gGNJRMoCo+3w22OpNcEI23ndSCYVmEi5/1I1P7vQZArXl7TCKylmuldXpIifpH09 mFzFKpg7tbj0kLNbZDEndhmKar0JmrLefiOkPHTgcNstXW72llhpRBxu5Bhfm3RgTWhl1Fviu9Y Hsj/i0ZhB/C/QdIe//s1T4kCbGCjwpp58jM1KqBWc/kD5Zy5vS5k+GfSwHihWsPt9rrsD0FM1nR H7YzuE9METCfs8EZUpWRSn4PPLVbhxMWy2y7q5s39LVq6c0Jhe9N5MybwoK0X2/wIvNZ0weWBBO vjYHdPgcRQ86RUnAykp8fu2oiI/d1xB48dwC/V3Vg/gtiCInJISnfbzjJ84wNZciQgB42BL/SWZ 4hdeEUpCEUeED6Fa7GxaaZtAbP/uMzilPDKJxuUQZJ/GqThABaWryOaXXbStQjf+AEXGCd+ndNO +2celU+PznztsgahnmAci4srTpwLRmcFDeZHpTTGofkqWGe55It X-Received: by 2002:a17:907:9411:b0:c40:d920:747c with SMTP id a640c23a62f3a-c513a47d409mr2667778666b.7.1796057675380; Mon, 30 Nov 2026 08:54:35 -0800 (PST) X-Received: by 2002:a17:907:9411:b0:c40:d920:747c with SMTP id a640c23a62f3a-c513a47d409mr2667776566b.7.1796057675008; Mon, 30 Nov 2026 08:54:35 -0800 (PST) Received: from cluster.. (4f.55.790d.ip4.static.sl-reverse.com. [13.121.85.79]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513acfeda1sm1230873466b.6.2026.11.30.08.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 08:54:34 -0800 (PST) From: Alex Markuze To: Xiubo Li Cc: Ilya Dryomov , Viacheslav Dubeyko , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Anthony D'Atri Subject: Re: [PATCH v2 0/2] ceph: serialize O_APPEND writes across clients Date: Mon, 30 Nov 2026 16:54:33 +0000 Message-Id: <20261130165433.97991-1-amarkuze@redhat.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261126-ceph-append-excl-v2-0-e8707d123d77@clyso.com> References: <20261126-ceph-append-excl-v2-0-e8707d123d77@clyso.com> 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 Xiubo, Thanks for adding the fallback when the auth MDS doesn't support APPEND_EXCL. In patch 1, if allocation of a size-bearing cap flush fails, __send_cap() advances the ticket without queuing the update. A later cap release can then reach the MDS before the size update, so the next appender can get the old EOF. Please keep the release behind the size update on allocation failure too. In patch 2, if the MDS revokes Fx before the waiting appender takes its references, try_flush_caps() and flush replay can acknowledge the revoke even though ceph_check_caps() would preserve the reserved turn. The appender then has to request another turn. Please make both flush paths honor the reservation while still allowing the appender to yield. Requiring Fx can also make the appender wait when Fw is already available. If EOF advances during that wait, the write can exceed RLIMIT_FSIZE because the VFS check used the old offset. The old EOF adjustment had the same omission. Please enforce the VFS write limits against the final append position and count before submitting the write. Thanks, Alex