[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH tarfs 0/6] mmap support for tarfs
From: |
Samuel Thibault |
Subject: |
Re: [RFC PATCH tarfs 0/6] mmap support for tarfs |
Date: |
Sat, 1 May 2021 17:29:38 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Hello,
Sergey Bugaev, le jeu. 29 avril 2021 21:57:10 +0300, a ecrit:
> The reason I need it is I want to run some binaries directly form a tarfs
> mount, without unpacking them to disk (ext2fs).
Nice :)
> The pager reads and writes data the same way tarfs_read_node () and
> tarfs_write_node () do: namely, by calling into the existing cache
> implementation.
Actually I'd say the pager should replace the cache. The pager is
already a cache by itself, we should not need to keep both the pager and
the cache, particularly since it means having to keep both coherent.
> Is there a better way to deal with a held mutex that unlocking it
> before calling a function that re-locks it?
Yes, avoiding the situation. If you unlock a mutex, anything can then
happen, and you can easily get to an incoherent state.
> (Making the mutex recursive, perhaps?
That's usually frowned upon because it's often a sign that you don't
know at various places whether you hold the lock or not.
> Or extracting the inner part into its own function?)
Yes, in some cases that makes sense.
Samuel
- Re: [RFC PATCH tarfs 0/6] mmap support for tarfs,
Samuel Thibault <=
- Re: [RFC PATCH tarfs 0/6] mmap support for tarfs, Sergey Bugaev, 2021/05/01
- Re: [RFC PATCH tarfs 0/6] mmap support for tarfs, Samuel Thibault, 2021/05/01
- Re: [RFC PATCH tarfs 0/6] mmap support for tarfs, Sergey Bugaev, 2021/05/01
- Re: [RFC PATCH tarfs 0/6] mmap support for tarfs, Samuel Thibault, 2021/05/01
- Re: [RFC PATCH tarfs 0/6] mmap support for tarfs, Sergey Bugaev, 2021/05/01
- Re: [RFC PATCH tarfs 0/6] mmap support for tarfs, Samuel Thibault, 2021/05/08
- Re: [RFC PATCH tarfs 0/6] mmap support for tarfs, Sergey Bugaev, 2021/05/08
- Re: [RFC PATCH tarfs 0/6] mmap support for tarfs, Samuel Thibault, 2021/05/08