]> git.karo-electronics.de Git - karo-tx-linux.git/commit
megaraid_sas: fix a small problem when reading state value from hw
authorTomas Henzl <thenzl@redhat.com>
Tue, 1 Apr 2014 11:59:50 +0000 (13:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 11:30:59 +0000 (13:30 +0200)
commitbc6ac5e8c214a6b27ccaedbeb62bd2873a767034
tree5b9f01a3c737e77a706b5b9c6367a11adb70698f
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c
megaraid_sas: fix a small problem when reading state value from hw

When the driver reads state values from the hw it might happen that
different values are read in subsequent reads and this can cause problems,
this may lead to a timeout in this function and a non working adapter.

Cc: Adam Radford <aradford@gmail.com>
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Shintaro Minemoto <fj3207hq@aa.jp.fujitsu.com>
Acked-by: Sumit Saxena <sumit.saxena@lsi.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/megaraid/megaraid_sas_base.c