diff options
author | Ed L. Cashin <ecashin@coraid.com> | 2008-02-08 07:20:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:31 -0500 |
commit | 262bf54144ebcb78cd0d057d2705dc5fb7bba7ac (patch) | |
tree | 6a995fead6fa9638e02fc6e3928fe0a8612f073a /Documentation/aoe/mkdevs.sh | |
parent | cf446f0dbafb5428a551da1c0df8f56316831df8 (diff) |
aoe: user can ask driver to forget previously detected devices
When an AoE device is detected, the kernel is informed, and a new block device
is created. If the device is unused, the block device corresponding to remote
device that is no longer available may be removed from the system by telling
the aoe driver to "flush" its list of devices.
Without this patch, software like GPFS and LVM may attempt to read from AoE
devices that were discovered earlier but are no longer present, blocking until
the I/O attempt times out.
Signed-off-by: Ed L. Cashin <ecashin@coraid.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/aoe/mkdevs.sh')
-rw-r--r-- | Documentation/aoe/mkdevs.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/aoe/mkdevs.sh b/Documentation/aoe/mkdevs.sh index 97374aacacb2..44c0ab702432 100644 --- a/Documentation/aoe/mkdevs.sh +++ b/Documentation/aoe/mkdevs.sh | |||
@@ -29,6 +29,8 @@ rm -f $dir/interfaces | |||
29 | mknod -m 0200 $dir/interfaces c $MAJOR 4 | 29 | mknod -m 0200 $dir/interfaces c $MAJOR 4 |
30 | rm -f $dir/revalidate | 30 | rm -f $dir/revalidate |
31 | mknod -m 0200 $dir/revalidate c $MAJOR 5 | 31 | mknod -m 0200 $dir/revalidate c $MAJOR 5 |
32 | rm -f $dir/flush | ||
33 | mknod -m 0200 $dir/flush c $MAJOR 6 | ||
32 | 34 | ||
33 | export n_partitions | 35 | export n_partitions |
34 | mkshelf=`echo $0 | sed 's!mkdevs!mkshelf!'` | 36 | mkshelf=`echo $0 | sed 's!mkdevs!mkshelf!'` |