From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Rework arch/ia64/kernel/salinfo.c for 2.4
Date: Mon, 20 Oct 2003 23:38:42 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106669316010892@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106664704821234@msgid-missing>
On Monday 20 October 2003 4:47 am, Keith Owens wrote:
> I have reworked salinfo.c to get a clean separation between the
> interrupt handler that is called from mca.c and the rest of the salinfo
> code that runs in user context.
Thanks for doing all this work. You've obviously done a lot of work
and I'm still going through it :-)
The only comment/question I have so far is about the log_buffer
management. You're relying on ia64_sal_get_state_info_size(X)
returning the same thing every time it's called for "X". I seem
to recall some weaseling on the part of our FW guys, because
they might want to change the size based on hot-plug events.
But I don't think the spec really leaves them that option.
In any case, since we do rely on the size being constant, what
about doing the allocation in sal_log_open()? Then it could be
removed from salinfo_log_read() and salinfo_log_clear(), and the
open/release paths would be more parallel.
I'm not too sure about the vfree() in salinfo_exit(). As you say,
it can't be built as a module, even if it could be, there should
be some mechanism that prevents the module from being unloaded
while any of the files are open.
Bjorn
next prev parent reply other threads:[~2003-10-20 23:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-20 10:47 Rework arch/ia64/kernel/salinfo.c for 2.4 Keith Owens
2003-10-20 14:38 ` Zoltan Menyhart
2003-10-20 14:53 ` Keith Owens
2003-10-20 23:38 ` Bjorn Helgaas [this message]
2003-10-21 0:12 ` Keith Owens
2003-10-21 11:49 ` Zoltan Menyhart
2003-10-21 11:55 ` Zoltan Menyhart
2003-10-21 12:31 ` Keith Owens
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=marc-linux-ia64-106669316010892@msgid-missing \
--to=bjorn.helgaas@hp.com \
--cc=linux-ia64@vger.kernel.org \
/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