The patch titled md: clear the congested_fn when stopping a raid5 has been added to the -mm tree. Its filename is md-clear-the-congested_fn-when-stopping-a-raid5.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: md: clear the congested_fn when stopping a raid5 From: NeilBrown <neilb@xxxxxxx> If this mddev and queue got reused for another array that doesn't register a congested_fn, this function would get called incorretly. Signed-off-by: Neil Brown <neilb@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/md/md.c | 1 + drivers/md/raid5.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/md/md.c~md-clear-the-congested_fn-when-stopping-a-raid5 drivers/md/md.c --- a/drivers/md/md.c~md-clear-the-congested_fn-when-stopping-a-raid5 +++ a/drivers/md/md.c @@ -3325,6 +3325,7 @@ static int do_md_stop(mddev_t * mddev, i mddev->queue->merge_bvec_fn = NULL; mddev->queue->unplug_fn = NULL; mddev->queue->issue_flush_fn = NULL; + mddev->queue->backing_dev_info.congested_fn = NULL; if (mddev->pers->sync_request) sysfs_remove_group(&mddev->kobj, &md_redundancy_group); diff -puN drivers/md/raid5.c~md-clear-the-congested_fn-when-stopping-a-raid5 drivers/md/raid5.c --- a/drivers/md/raid5.c~md-clear-the-congested_fn-when-stopping-a-raid5 +++ a/drivers/md/raid5.c @@ -3646,8 +3646,8 @@ static int run(mddev_t *mddev) mddev->queue->unplug_fn = raid5_unplug_device; mddev->queue->issue_flush_fn = raid5_issue_flush; - mddev->queue->backing_dev_info.congested_fn = raid5_congested; mddev->queue->backing_dev_info.congested_data = mddev; + mddev->queue->backing_dev_info.congested_fn = raid5_congested; mddev->array_size = mddev->size * (conf->previous_raid_disks - conf->max_degraded); @@ -3678,6 +3678,7 @@ static int stop(mddev_t *mddev) mddev->thread = NULL; shrink_stripes(conf); kfree(conf->stripe_hashtbl); + mddev->queue->backing_dev_info.congested_fn = NULL; blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/ sysfs_remove_group(&mddev->kobj, &raid5_attrs_group); kfree(conf->disks); _ Patches currently in -mm which might be from neilb@xxxxxxx are knfsd-allow-nfsd-readdir-to-return-64bit-cookies.patch knfsd-nfsd4-fix-inheritance-flags-on-v4-ace-derived-from-posix-default-ace.patch knfsd-nfsd4-demote-clientid-in-use-printk-to-a-dprintk.patch knfsd-nfsd4-remove-superfluous-cancel_delayed_work-call.patch md-allow-raid4-arrays-to-be-reshaped.patch md-clear-the-congested_fn-when-stopping-a-raid5.patch md-convert-compile-time-warnings-into-runtime-warnings.patch net-sunrpc-svcsockc-fix-a-check.patch fix-quadratic-behavior-of-shrink_dcache_parent.patch fix-__d_path-for-lazy-unmounts-and-make-it-unambiguous.patch the-nfsv2-nfsv3-server-does-not-handle-zero-length-write.patch readahead-nfsd-case.patch drivers-mdc-use-array_size-macro-when-appropriate.patch md-dm-reduce-stack-usage-with-stacked-block-devices.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html