summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.de>2015-04-14 10:43:55 -0500
committerNeilBrown <neilb@suse.de>2015-04-22 07:59:39 +1000
commit57d051dccaef395e0d8c0fff02cfc3a77bacc88c (patch)
tree250d78ba0fad52865ad28f54de4dd21e810cb14f /drivers/md/md.h
parentfb56dfef4e31f214cfbfa0eb8a1949591c20b118 (diff)
downloadlinux-57d051dccaef395e0d8c0fff02cfc3a77bacc88c.tar.bz2
md: Export and rename find_rdev_nr_rcu
This is required by the clustering module (patches to follow) to find the device to remove or re-add. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index d98c0d764d8f..ecdce36ec6b8 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -672,6 +672,7 @@ extern void md_unplug(struct blk_plug_cb *cb, bool from_schedule);
extern void md_reload_sb(struct mddev *mddev);
extern void md_update_sb(struct mddev *mddev, int force);
extern void md_kick_rdev_from_array(struct md_rdev * rdev);
+struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr);
static inline int mddev_check_plugged(struct mddev *mddev)
{
return !!blk_check_plugged(md_unplug, mddev,