All of lore.kernel.org
 help / color / mirror / Atom feed
* [md PATCH 0/4] Assorted minor improvements.
@ 2016-11-04  5:46 NeilBrown
  2016-11-04  5:46 ` [md PATCH 1/4] md: perform async updates for metadata where possible NeilBrown
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: NeilBrown @ 2016-11-04  5:46 UTC (permalink / raw)
  To: Shaohua Li; +Cc: linux-raid

There is no real pattern to these patches except that they are fairly
boring but occasionally useful.

The first allows --add and --remove commands to succeed without
waiting for a metadata write, which is just wasted time.  This can be
useful when adding/removes hundreds of devices on a large RAID10
array.

The next two abort some writes which have become pointless.  If a
device fails in a way that causes long retries, this can reduce the
total time  for recovery

The last is a small correctness fix bitmap_daemon_work() doesn't wait
for writes to complete, so they might still be pending when the next
writes is sent, and two writes to the same location might not be
handled properly.  So we insert waits in the rare case that they are
needed.

Thanks,
NeilBrown

---

NeilBrown (4):
      md: perform async updates for metadata where possible.
      md/raid1: abort delayed writes when device fails.
      md/raid10: abort delayed writes when device fails.
      md/bitmap: Don't write bitmap while earlier writes might be in-flight


 drivers/md/bitmap.c |   27 ++++++++++++++++++++++-----
 drivers/md/md.c     |   16 ++++++++++++----
 drivers/md/raid1.c  |   20 +++++++++++++++-----
 drivers/md/raid10.c |   22 ++++++++++++++++------
 4 files changed, 65 insertions(+), 20 deletions(-)

--
Signature


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

end of thread, other threads:[~2016-11-07 22:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-04  5:46 [md PATCH 0/4] Assorted minor improvements NeilBrown
2016-11-04  5:46 ` [md PATCH 1/4] md: perform async updates for metadata where possible NeilBrown
2016-11-04  5:46 ` [md PATCH 4/4] md/bitmap: Don't write bitmap while earlier writes might be in-flight NeilBrown
2016-11-05  0:33   ` Shaohua Li
2016-11-06 22:53     ` NeilBrown
2016-11-07 19:19       ` Shaohua Li
2016-11-07 20:19         ` NeilBrown
2016-11-07 22:57           ` Shaohua Li
2016-11-04  5:46 ` [md PATCH 3/4] md/raid10: abort delayed writes when device fails NeilBrown
2016-11-04  5:46 ` [md PATCH 2/4] md/raid1: " NeilBrown

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.