* [PATCH 1/3] raid5: remove unnecessary parameter.
@ 2012-09-06 1:28 Jianpeng Ma
0 siblings, 0 replies; only message in thread
From: Jianpeng Ma @ 2012-09-06 1:28 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
---
drivers/md/raid5.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index adda94d..3f21074 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -1152,16 +1152,15 @@ ops_run_biodrain(struct stripe_head *sh, struct dma_async_tx_descriptor *tx)
for (i = disks; i--; ) {
struct r5dev *dev = &sh->dev[i];
- struct bio *chosen;
if (test_and_clear_bit(R5_Wantdrain, &dev->flags)) {
struct bio *wbi;
spin_lock_irq(&sh->stripe_lock);
- chosen = dev->towrite;
+ wbi = dev->towrite;
dev->towrite = NULL;
BUG_ON(dev->written);
- wbi = dev->written = chosen;
+ dev->written = wbi;
spin_unlock_irq(&sh->stripe_lock);
while (wbi && wbi->bi_sector <
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-09-06 1:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 1:28 [PATCH 1/3] raid5: remove unnecessary parameter Jianpeng Ma
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).