* [PATCH nvme-4.13] nvme/pci: Use saved CSTS value
@ 2017-06-14 16:13 Keith Busch
2017-06-14 16:10 ` Martin K. Petersen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Keith Busch @ 2017-06-14 16:13 UTC (permalink / raw)
Don't re-read controller status when checking controller health on an
IO timeout.
Signed-off-by: Keith Busch <keith.busch at intel.com>
---
Note for Christoph: I planned to fold this into a v2 of the watchdog
timer removal, but I see that was added in commit afd83d84461808, but
under the wrong author. :)
drivers/nvme/host/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 788bb2c..85f9739 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1003,7 +1003,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved)
/*
* Reset immediately if the controller is failed
*/
- if (nvme_should_reset(dev, readl(dev->bar + NVME_REG_CSTS))) {
+ if (nvme_should_reset(dev, csts)) {
nvme_warn_reset(dev, csts);
nvme_dev_disable(dev, false);
nvme_reset(dev);
--
2.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH nvme-4.13] nvme/pci: Use saved CSTS value
2017-06-14 16:13 [PATCH nvme-4.13] nvme/pci: Use saved CSTS value Keith Busch
@ 2017-06-14 16:10 ` Martin K. Petersen
2017-06-14 16:27 ` Christoph Hellwig
2017-06-15 10:07 ` Sagi Grimberg
2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2017-06-14 16:10 UTC (permalink / raw)
Keith,
> Don't re-read controller status when checking controller health on an
> IO timeout.
Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH nvme-4.13] nvme/pci: Use saved CSTS value
2017-06-14 16:13 [PATCH nvme-4.13] nvme/pci: Use saved CSTS value Keith Busch
2017-06-14 16:10 ` Martin K. Petersen
@ 2017-06-14 16:27 ` Christoph Hellwig
2017-06-15 10:07 ` Sagi Grimberg
2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2017-06-14 16:27 UTC (permalink / raw)
On Wed, Jun 14, 2017@12:13:58PM -0400, Keith Busch wrote:
> Don't re-read controller status when checking controller health on an
> IO timeout.
>
> Signed-off-by: Keith Busch <keith.busch at intel.com>
> ---
> Note for Christoph: I planned to fold this into a v2 of the watchdog
> timer removal, but I see that was added in commit afd83d84461808, but
> under the wrong author. :)
Meh, damn git rebase messing up the author on conlicts one again.
I'll fold the patch and will fix the author when doing the next
rebase.
I still need a review for my 64-bit division fix before doing that
rebase, though.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH nvme-4.13] nvme/pci: Use saved CSTS value
2017-06-14 16:13 [PATCH nvme-4.13] nvme/pci: Use saved CSTS value Keith Busch
2017-06-14 16:10 ` Martin K. Petersen
2017-06-14 16:27 ` Christoph Hellwig
@ 2017-06-15 10:07 ` Sagi Grimberg
2 siblings, 0 replies; 4+ messages in thread
From: Sagi Grimberg @ 2017-06-15 10:07 UTC (permalink / raw)
Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-06-15 10:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-14 16:13 [PATCH nvme-4.13] nvme/pci: Use saved CSTS value Keith Busch
2017-06-14 16:10 ` Martin K. Petersen
2017-06-14 16:27 ` Christoph Hellwig
2017-06-15 10:07 ` Sagi Grimberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox