NeilBrown
746d3207ae
md: use common code for all calls to ->hot_remove_disk()
...
slot_store and remove_and_add_spares both call ->hot_remove_disk(),
but with slightly different tests and consequences, which is
at least untidy and might be buggy.
So modify remove_and_add_spaces() so that it can be asked
to remove a specific device, and call it from slot_store().
We also clear the Blocked flag to ensure that doesn't prevent
removal. The purpose of Blocked is to prevent automatic removal
by the kernel before an error is acknowledged.
If the array is read/write then user-space would have not reason
to remove a device unless it was known to be 'spare' or 'faulty' in
which it would have already cleared the Blocked flag.
If the array is read-only, the flag might still be blocked, but
there is no harm in clearing the flag for read-only arrays.
Signed-off-by: NeilBrown <neilb@suse.de>
2013-04-24 11:42:41 +10:00
..
persistent-data
dm thin: fix discard corruption
2013-03-20 17:21:24 +00:00
bitmap.c
new helper: file_inode(file)
2013-02-22 23:31:31 -05:00
bitmap.h
md/bitmap: record the space available for the bitmap in the superblock.
2012-05-22 13:55:34 +10:00
dm-bio-prison.c
dm: add cache target
2013-03-01 22:45:51 +00:00
dm-bio-prison.h
dm: add cache target
2013-03-01 22:45:51 +00:00
dm-bio-record.h
dm-bufio.c
dm verity: avoid deadlock
2013-03-20 17:21:25 +00:00
dm-bufio.h
dm bufio: prefetch
2012-03-28 18:41:29 +01:00
dm-cache-block-types.h
dm: add cache target
2013-03-01 22:45:51 +00:00
dm-cache-metadata.c
dm cache: policy ignore hints if generated by different version
2013-03-20 17:21:28 +00:00
dm-cache-metadata.h
dm cache: policy ignore hints if generated by different version
2013-03-20 17:21:28 +00:00
dm-cache-policy-cleaner.c
dm cache: policy change version from string to integer set
2013-03-20 17:21:27 +00:00
dm-cache-policy-internal.h
dm cache: policy change version from string to integer set
2013-03-20 17:21:27 +00:00
dm-cache-policy-mq.c
dm cache: policy change version from string to integer set
2013-03-20 17:21:27 +00:00
dm-cache-policy.c
dm cache: policy change version from string to integer set
2013-03-20 17:21:27 +00:00
dm-cache-policy.h
dm cache: policy change version from string to integer set
2013-03-20 17:21:27 +00:00
dm-cache-target.c
dm cache: reduce bio front_pad size in writeback mode
2013-04-05 15:36:34 +01:00
dm-crypt.c
dm: rename request variables to bios
2013-03-01 22:45:47 +00:00
dm-delay.c
dm: rename request variables to bios
2013-03-01 22:45:47 +00:00
dm-exception-store.c
dm: replace simple_strtoul
2012-07-27 15:07:59 +01:00
dm-exception-store.h
dm-flakey.c
dm: rename request variables to bios
2013-03-01 22:45:47 +00:00
dm-io.c
dm kcopyd: add WRITE SAME support to dm_kcopyd_zero
2012-12-21 20:23:37 +00:00
dm-ioctl.c
dm ioctl: allow message to return data
2013-03-01 22:45:49 +00:00
dm-kcopyd.c
dm kcopyd: introduce configurable throttling
2013-03-01 22:45:49 +00:00
dm-linear.c
dm: rename request variables to bios
2013-03-01 22:45:47 +00:00
dm-log-userspace-base.c
Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
2011-11-06 19:44:47 -08:00
dm-log-userspace-transfer.c
connector/userns: replace netlink uses of cap_raised() with capable()
2012-05-10 23:21:39 -04:00
dm-log-userspace-transfer.h
dm-log.c
dm: use memweight()
2012-07-30 17:25:16 -07:00
dm-mpath.c
dm: rename request variables to bios
2013-03-01 22:45:47 +00:00
dm-mpath.h
dm-path-selector.c
md: Add module.h to all files using it implicitly
2011-10-31 19:31:18 -04:00
dm-path-selector.h
dm-queue-length.c
dm: reject trailing characters in sccanf input
2012-03-28 18:41:26 +01:00
dm-raid.c
md updates for 3.9
2013-03-05 17:22:08 -08:00
dm-raid1.c
dm kcopyd: introduce configurable throttling
2013-03-01 22:45:49 +00:00
dm-region-hash.c
dm raid1: fix crash with mirror recovery and discard
2012-07-20 14:25:03 +01:00
dm-round-robin.c
dm: reject trailing characters in sccanf input
2012-03-28 18:41:26 +01:00
dm-service-time.c
dm: reject trailing characters in sccanf input
2012-03-28 18:41:26 +01:00
dm-snap-persistent.c
md: Add in export.h for files using EXPORT_SYMBOL
2011-10-31 19:31:19 -04:00
dm-snap-transient.c
md: Add in export.h for files using EXPORT_SYMBOL
2011-10-31 19:31:19 -04:00
dm-snap.c
dm kcopyd: introduce configurable throttling
2013-03-01 22:45:49 +00:00
dm-stripe.c
dm: rename request variables to bios
2013-03-01 22:45:47 +00:00
dm-sysfs.c
dm-table.c
dm: rename request variables to bios
2013-03-01 22:45:47 +00:00
dm-target.c
dm: rename request variables to bios
2013-03-01 22:45:47 +00:00
dm-thin-metadata.c
dm persistent data: set some btree fn parms const
2013-03-01 22:45:47 +00:00
dm-thin-metadata.h
dm thin metadata: introduce dm_pool_abort_metadata
2012-07-27 15:08:15 +01:00
dm-thin.c
dm thin: fix non power of two discard granularity calc
2013-03-20 17:21:25 +00:00
dm-uevent.c
md: Add in export.h for files using EXPORT_SYMBOL
2011-10-31 19:31:19 -04:00
dm-uevent.h
dm-verity.c
dm verity: avoid deadlock
2013-03-20 17:21:25 +00:00
dm-zero.c
dm: rename request variables to bios
2013-03-01 22:45:47 +00:00
dm.c
Revert "block: add missing block_bio_complete() tracepoint"
2013-04-18 09:00:26 -07:00
dm.h
dm: introduce per_bio_data
2012-12-21 20:23:38 +00:00
faulty.c
md faulty: use disk_stack_limits()
2012-10-22 10:44:55 +11:00
Kconfig
md updates for 3.9
2013-03-05 17:22:08 -08:00
linear.c
md: linear supports TRIM
2012-10-11 13:08:44 +11:00
linear.h
md/linear: typedef removal: linear_conf_t -> struct linear_conf
2011-10-11 16:48:54 +11:00
Makefile
dm cache: add cleaner policy
2013-03-01 22:45:52 +00:00
md.c
md: use common code for all calls to ->hot_remove_disk()
2013-04-24 11:42:41 +10:00
md.h
MD: Prevent sysfs operations on uninitialized kobjects
2013-03-20 13:17:57 +11:00
multipath.c
MD: change the parameter of md thread
2012-10-11 13:34:00 +11:00
multipath.h
md/multipath: typedef removal: multipath_conf_t -> struct mpconf
2011-10-11 16:48:57 +11:00
raid0.c
md/raid0: improve error message when converting RAID4-with-spares to RAID0
2013-02-26 11:58:44 +11:00
raid0.h
md: add proper merge_bvec handling to RAID0 and Linear.
2012-03-19 12:46:39 +11:00
raid1.c
md/raid1,raid10: fix deadlock with freeze_array()
2013-02-26 11:58:50 +11:00
raid1.h
md/raid1: prevent merging too large request
2012-07-31 10:03:53 +10:00
raid5.c
Revert "block: add missing block_bio_complete() tracepoint"
2013-04-18 09:00:26 -07:00
raid5.h
md: remove CONFIG_MULTICORE_RAID456 entirely
2013-03-20 13:21:14 +11:00
raid10.c
md/raid1,raid10: fix deadlock with freeze_array()
2013-02-26 11:58:50 +11:00
raid10.h
MD RAID10: Improve redundancy for 'far' and 'offset' algorithms (part 1)
2013-02-26 11:55:30 +11:00