]> Pileus Git - ~andy/linux/blobdiff - drivers/md/md.h
Merge tag 'mxs-clk-dt-lookup' into mxs/dt-for-3.7-2
[~andy/linux] / drivers / md / md.h
index 91786c46b85ca02a8af9c145a0e42b4b37f65856..f385b038589d32313014e07af203b8f742bec4a7 100644 (file)
@@ -627,6 +627,12 @@ extern struct bio *bio_clone_mddev(struct bio *bio, gfp_t gfp_mask,
                                   struct mddev *mddev);
 extern struct bio *bio_alloc_mddev(gfp_t gfp_mask, int nr_iovecs,
                                   struct mddev *mddev);
-extern int mddev_check_plugged(struct mddev *mddev);
 extern void md_trim_bio(struct bio *bio, int offset, int size);
+
+extern void md_unplug(struct blk_plug_cb *cb, bool from_schedule);
+static inline int mddev_check_plugged(struct mddev *mddev)
+{
+       return !!blk_check_plugged(md_unplug, mddev,
+                                  sizeof(struct blk_plug_cb));
+}
 #endif /* _MD_MD_H */