Skip to content

A few more md patches for 2.6.26

Dan Williams linux-raid 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3md: ping userspace on 'write-pending' eventsdrivers/md/md.c+15 -43 replies
2/3md: ping userspace on 'stop' eventsdrivers/md/md.c+3 -01 reply
3/3md: add new / required locking for calls to blk_remove_plug and blk_plug_queuedrivers/md/md.c drivers/md/raid1.c drivers/md/raid10.c +2 more+32 -63 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] A few more md patches for 2.6.26

Hi Neil,

The first two patches add some necessary sysfs_notify calls for external metadata arrays. They replace md-ping-userspace-on-ext-metadata-events.patch which, as you noted, did these notifications globally in md_check_recovery() rather than at the local site where the state changes.

While testing these I ran into:

   WARNING: at include/linux/blkdev.h:443 queue_flag_clear+0x2c/0x4d()

...due to the recent "block: make queue flags non-atomic" (commit:
75ad23bc0fcb4f992a5d06982bf0857ab1738e9e). I believe patch 3/3 is the intended fix.

---

Dan Williams (3):
md: add new / required locking for calls to blk_remove_plug and blk_plug_queue
md: ping userspace on 'stop' events
md: ping userspace on 'write-pending' events

 drivers/md/md.c           |   25 +++++++++++++++++++++----
 drivers/md/raid1.c        |   10 ++++++++--
 drivers/md/raid10.c       |   10 ++++++++--
 drivers/md/raid5.c        |   12 ++++++++++--
 include/linux/raid/md_k.h |    3 +++
 5 files changed, 50 insertions(+), 10 deletions(-)
Signature · 2 lines
Regards,
Dan