]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
aoe: do revalidation steps in order
authorEd Cashin <ecashin@coraid.com>
Fri, 5 Oct 2012 00:16:31 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:26 +0000 (03:05 +0900)
commit25f4d75ea45cdcc59158bfd1ae162a6ff2071124
tree7a5d466802997735cfa531947b845f0ba36d61f0
parentd54d35ac6605161a593e3f4411de338ef81b5263
aoe: do revalidation steps in order

The discovery process begins with an optional AoE config query command and
an AoE config query response.  Normally when an aoe device is already
open, the config query response does not trigger an ATA identify device
command to be sent out, since the response contains storage capacity
information that, if changed, could surprise the user of the device.

The userland "aoe-revalidate" tool uses a character device to trigger an
AoE config query for a particular AoE storage target and an ATA device
identify command, even when the device is open.

This change causes the config query to go out first, reflecting the normal
discovery sequence.  The responses could come back in any order, so this
change is fairly cosmetic.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/aoe/aoechr.c