From: Arjan van de Ven <arjanv@redhat.com>
To: Mike Christie <michaelc@cs.wisc.edu>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] sdd scsi-ml event wq
Date: Fri, 28 May 2004 11:18:26 +0200 [thread overview]
Message-ID: <20040528091825.GA17960@devserv.devel.redhat.com> (raw)
In-Reply-To: <40B70137.70106@cs.wisc.edu>
[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]
On Fri, May 28, 2004 at 02:07:03AM -0700, Mike Christie wrote:
> I agree with you, and I do not have a good answer. When the system is
> failing
> memory allocations it is difficult to do a lot of things. I was thinking
> that
> in such an extreme situation that it would be acceptable for events to fail.
> Would it be better to have the API set a timer and retry at a later time? I
> was
> thinking you could end up with a long backlog of events that may be
> worthless
> by the time the system can allocate memory - which is why I put in the
> mempool (I know that they are not magic and will fail too though). I am open
> to ideas.
well what would suck is if userspace only sees a last "loop down"
event but then never sees the final "loop up".
The problem is that the memory allocation issue is more critical here than
in typical code, simply because on loop down you may not be able to do IO to
your swap device/filesystem to free memory.
Maybe we need to do a spare allocated event that is ONLY used for "eh the
queue overflowed, assume all state is lost, rediscover everything". That way
userland CAN know about the loss of state, and perform full
discovery/recovery.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-05-28 9:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-28 7:59 [PATCH] sdd scsi-ml event wq Mike Christie
2004-05-28 8:15 ` Arjan van de Ven
2004-05-28 9:07 ` Mike Christie
2004-05-28 9:18 ` Arjan van de Ven [this message]
2004-05-28 10:00 ` Mike Christie
2004-06-07 7:54 ` Douglas Gilbert
-- strict thread matches above, loose matches on Subject: below --
2004-06-03 10:46 Martin Peschke3
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=20040528091825.GA17960@devserv.devel.redhat.com \
--to=arjanv@redhat.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
/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