]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/cephfs: invoke fcopyfile() libcephfs API without holding GIL 66927/head
authorVenky Shankar <vshankar@redhat.com>
Wed, 14 Jan 2026 13:08:58 +0000 (18:38 +0530)
committerVenky Shankar <vshankar@redhat.com>
Wed, 14 Jan 2026 13:17:20 +0000 (18:47 +0530)
commitd5912059c674660d770cc507b83d1c701868b9f4
tree32cb1716b26200da45e7637180a83d4b2f14003d
parentbc209e6daff0690959c9cf52d6c6cae699ad1b4d
pybind/cephfs: invoke fcopyfile() libcephfs API without holding GIL

fcopyfile() performs a read+write cycle on the entire file to be copied.
The python binding invokes this with the GIL held. This causes the GIL
to be held for extended duration causing other python threads to be
blocked on acquiring the GIL when shceduled.

Fixes: http://tracker.ceph.com/issues/74397
Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/pybind/cephfs/cephfs.pyx