]> err.no Git - linux-2.6/commit
dm mpath: hp retry if not ready
authorDave Wysochanski <dwysocha@redhat.com>
Fri, 19 Oct 2007 21:47:55 +0000 (22:47 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 20 Oct 2007 01:01:20 +0000 (02:01 +0100)
commitfe97e2aa0502922488ad62303a19a20c8044ae18
tree481f977d08248b64c4e9b3c48c74b95fbe90e1be
parent16ebbf358477b762115fec2f85d9b9496a5cae76
dm mpath: hp retry if not ready

This patch adds retries to the hp hardware handler, and utilizes the
MP_RETRY flag of dm-multipath.  For now in the hp handler, if we get a
pg_init completed with a check condition we just assume we can retry the
pg_init command.  We make this assumption because of incomplete data on
specific check condition code of the HP hardware, and because testing
has shown the HP path initialization command to be idempotent.
The number of times we retry is settable via the "pg_init_retries"
multipath map feature.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Acked-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath-hp-sw.c