From: Alex Markuze <amarkuze@redhat.com>
To: Daolong Zhang <dlzhangak@isoftstone.com>
Cc: Ilya Dryomov <idryomov@gmail.com>,
Viacheslav Dubeyko <slava@dubeyko.com>,
ceph-devel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] ceph: add compression_hint mount option
Date: Wed, 2 Dec 2026 13:24:27 +0000 [thread overview]
Message-ID: <20261202132427.599967-1-amarkuze@redhat.com> (raw)
In-Reply-To: <1796092809.6B0E3386.002.4jdlVG5Ycqz5sWq@fangwg01>
Hi Daolong,
With a compression hint, ceph_osdc_new_request() allocates two ops for a
direct write but initializes only WRITE before allocating the messages. If
a message allocation fails, cleanup releases both slots before the hint
slot is initialized. A slot reused from a sparse read can still contain
its already-freed extent pointer, so this can double-free it. Please make
all op slots safe to release before a constructor failure, for both hint
positions.
The initial (1, -1ULL) truncate pair also puts the hint before WRITE. In
the experimental Crimson/BlueStore implementation at Ceph commit
6d531bf08b7c, a first direct write to a new file can then abort the OSD:
the hint creates the object, and WRITE queues a truncate to -1ULL, which
BlueStore rejects. The classic OSD normalizes this sentinel. Please
preserve the initial no-truncate semantics for Crimson as well, without
reintroducing the missing-object problem for real truncates.
Thanks,
Alex
prev parent reply other threads:[~2026-12-02 13:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 2:40 Daolong Zhang
2026-12-02 13:24 ` Alex Markuze [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202132427.599967-1-amarkuze@redhat.com \
--to=amarkuze@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=corbet@lwn.net \
--cc=dlzhangak@isoftstone.com \
--cc=idryomov@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=slava@dubeyko.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®