linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] allow md_flush_request to take NULL bio
@ 2016-02-11  0:53 Song Liu
  2016-02-11  0:53 ` [PATCH 2/2] enable bypass raid5 journal for full stripe writes Song Liu
  2016-02-11  3:46 ` [PATCH 1/2] allow md_flush_request to take NULL bio NeilBrown
  0 siblings, 2 replies; 5+ messages in thread
From: Song Liu @ 2016-02-11  0:53 UTC (permalink / raw)
  To: linux-raid; +Cc: dan.j.williams, shli, hch, kernel-team, Song Liu

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
---
 drivers/md/md.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index e55e6cf..2997104 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -406,6 +406,8 @@ static void md_submit_flush_data(struct work_struct *ws)
 	struct mddev *mddev = container_of(ws, struct mddev, flush_work);
 	struct bio *bio = mddev->flush_bio;
 
+	if (!bio)
+		goto out;
 	if (bio->bi_iter.bi_size == 0)
 		/* an empty barrier - all done */
 		bio_endio(bio);
@@ -415,6 +417,7 @@ static void md_submit_flush_data(struct work_struct *ws)
 	}
 
 	mddev->flush_bio = NULL;
+out:
 	wake_up(&mddev->sb_wait);
 }
 
-- 
2.4.6


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

end of thread, other threads:[~2016-02-23 16:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-11  0:53 [PATCH 1/2] allow md_flush_request to take NULL bio Song Liu
2016-02-11  0:53 ` [PATCH 2/2] enable bypass raid5 journal for full stripe writes Song Liu
2016-02-11  4:07   ` NeilBrown
2016-02-23 16:34   ` Alireza Haghdoost
2016-02-11  3:46 ` [PATCH 1/2] allow md_flush_request to take NULL bio NeilBrown

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).