From: Manfred Spraul <manfred@colorfullife.com>
To: Peter Waechtler <pwaechtler@mac.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] unified SysV and Posix mqueues as FS
Date: Sun, 27 Oct 2002 17:55:07 +0100 [thread overview]
Message-ID: <3DBC1A6B.7020108@colorfullife.com> (raw)
> - notification not tested
> - still linear search in queues
Is that a problem? Receive does one linear search of the queued
messages, send does one linear search of the waiting receivers. Both
lists should be short.
Could you split your patch into the functional changes and cleanup?
(const, size_t, you move a few definitions around, whitespace cleanups)
I don't like the deep integration of the mqueues into the sysv code - is
that really needed?
For example, you add the mqueue messages into the sysv array, and then
add lots of code to separate both again - IPC_RMID cannot remove posix
queues, etc.
Have you tried to separate both further? Create a ramfs like filesystem,
store msg_queue in the inode structure?
The ids array is only for sysv, only the actual message handling is
shared between sysv msg and posix mqueues
> + msq->q_flags |= MSG_UNLK;
Is a "unlinked" flag needed for sysv msg? When a message queue is
deleted, all pending writes and reads are cancleled.
Copy and paste from shm? shm needs unlinked handling, msg doesn't.
> + msq->q_perm.key = IPC_PRIVATE; /* Do not find it any more */
Does that work? The key is only needed for msgget(), not for msgsnd() or
msgrcv()
> + msg_unlock (inode->i_ino);
--
Manfred
next reply other threads:[~2002-10-27 16:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-27 16:55 Manfred Spraul [this message]
2002-10-27 22:05 ` [PATCH] unified SysV and Posix mqueues as FS Peter Waechtler
[not found] ` <3DBCDF4A.3080709@colorfullife.com>
2002-10-28 10:49 ` Peter Waechtler
2002-10-28 21:39 ` Peter Waechtler
2002-10-28 21:43 ` Manfred Spraul
-- strict thread matches above, loose matches on Subject: below --
2002-10-27 15:33 Peter Waechtler
2002-10-27 15:47 ` Jeff Garzik
2002-10-27 15:53 ` Alexander Viro
2002-10-27 19:49 ` H. Peter Anvin
2002-10-27 22:02 ` Peter Waechtler
2002-10-28 1:54 ` Alexander Viro
2002-10-28 10:44 ` Peter Waechtler
2002-10-28 22:18 ` Bill Davidsen
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=3DBC1A6B.7020108@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pwaechtler@mac.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.