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 /drivers/block/aoe/aoe.h | |
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 'drivers/block/aoe/aoe.h')
-rw-r--r-- | drivers/block/aoe/aoe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h index aecaac3f2e58..2248ab226576 100644 --- a/drivers/block/aoe/aoe.h +++ b/drivers/block/aoe/aoe.h | |||
@@ -191,6 +191,7 @@ struct aoedev *aoedev_by_aoeaddr(int maj, int min); | |||
191 | struct aoedev *aoedev_by_sysminor_m(ulong sysminor); | 191 | struct aoedev *aoedev_by_sysminor_m(ulong sysminor); |
192 | void aoedev_downdev(struct aoedev *d); | 192 | void aoedev_downdev(struct aoedev *d); |
193 | int aoedev_isbusy(struct aoedev *d); | 193 | int aoedev_isbusy(struct aoedev *d); |
194 | int aoedev_flush(const char __user *str, size_t size); | ||
194 | 195 | ||
195 | int aoenet_init(void); | 196 | int aoenet_init(void); |
196 | void aoenet_exit(void); | 197 | void aoenet_exit(void); |