Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2023 21:16:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 273962] copy_file_range does not work on shared memory objects
Message-ID:  <bug-273962-227-0AsBYIkuuY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-273962-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273962

--- Comment #5 from Rick Macklem <rmacklem@FreeBSD.org> ---
I looked and doing the fallback will
require some messing about.
shm_read() and shm_write() do
range locking however copy_file_ramge()
needs to do range locking on both
fds before copying.

I think variants of shm_read() and
shm_write() would need to be created
without the range locking so that
kern_copy_file_range() can call those.
kern_copy_file_range() will also need
to use rangelock_rlock(), rangelock_tryrlock()
and rangelock_wlock() etc for this case.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273962-227-0AsBYIkuuY>