linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH md 0 of 2] Introduction
@ 2004-09-03  2:27 NeilBrown
  2004-09-03  2:27 ` [PATCH md 2 of 2] Correct "working_disk" counts for raid5 and raid6 NeilBrown
  2004-09-03  2:27 ` [PATCH md 1 of 2] Add interface to md driver for userspace monitoring of events NeilBrown
  0 siblings, 2 replies; 10+ messages in thread
From: NeilBrown @ 2004-09-03  2:27 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-raid

Two patches for md in 2.6.9-rc1-mm2

The first adds support for notifying user-space of events in md.

The mechanism is very simple.  A reader of /proc/mdstat can select for
"exceptional" events.  When select/poll indicates one of these, the 
reader should re-read /proc/mdstat from the top looking for changes, and then
select again.

If the reader opens for write as well (O_RDWR) (only root can do
this), then it indicates that it is prepared to take remedial action.
This is currently only relevant for multipath.  On last-drive-failure,
if there is a reader of /proc/mdstat that has an open for write, then
multipath will wait for that reader to add a new drive or take other
action before resubmitting the failed requests.

The second patch just fixes a counter in raid5/6 which could get out-by-one, and so
produce confusing messages.

(I think I sent a single item of junk just before this, sorry about that.  Please
ignore it).

NeilBrown


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-09-07 10:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-03  2:27 [PATCH md 0 of 2] Introduction NeilBrown
2004-09-03  2:27 ` [PATCH md 2 of 2] Correct "working_disk" counts for raid5 and raid6 NeilBrown
2004-09-03  2:27 ` [PATCH md 1 of 2] Add interface to md driver for userspace monitoring of events NeilBrown
2004-09-03 10:19   ` Andrew Morton
2004-09-06  1:05     ` Neil Brown
2004-09-06 14:02       ` Christoph Hellwig
2004-09-06 22:53         ` Neil Brown
2004-09-06 23:07           ` Andrew Morton
2004-09-07  0:53             ` Neil Brown
2004-09-07 10:45               ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).