]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: do revalidation steps in order
authorEd Cashin <ecashin@coraid.com>
Fri, 21 Sep 2012 01:03:32 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:59:29 +0000 (15:59 +1000)
commit76098e8c94e872ee87df7027034ac767600b9364
tree5fdbec3cf2854a5e6d8893ba298e15dda7a46215
parent9496676d59bab098b6a4c19ec26a9385d1a2ba86
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>
drivers/block/aoe/aoechr.c