Re: [PATCH v3 6/7] nvme-pci: trigger device coredump on command timeout
2019年5月13日(月) 16:41 Minwoo Im : > > > -static void __maybe_unused nvme_coredump_init(struct nvme_dev *dev); > > -static void __maybe_unused nvme_coredump_logs(struct nvme_dev *dev); > > -static void __maybe_unused nvme_coredump_complete(struct nvme_dev > > *dev); > > +static void nvme_coredump_init(struct nvme_dev *dev); > > +static void nvme_coredump_logs(struct nvme_dev *dev); > > +static void nvme_coredump_complete(struct nvme_dev *dev); > > You just have added those three prototypes in previous patch. Did I miss > something here? These __maybe_unused are needed only in the patch 5/7. Because these functions are still unused before applying patch 6/7.
Re: [PATCH v3 6/7] nvme-pci: trigger device coredump on command timeout
On Sun, May 12, 2019 at 08:54:16AM -0700, Akinobu Mita wrote: > @@ -2536,6 +2539,9 @@ static void nvme_reset_work(struct work_struct *work) > if (result) > goto out; > > + nvme_coredump_logs(dev); If you change nvme_coredump_logs to return an int, check it here for < 0 and abandon the reset if true. > + nvme_coredump_complete(dev); > + > if (dev->ctrl.oacs & NVME_CTRL_OACS_SEC_SUPP) { > if (!dev->ctrl.opal_dev) > dev->ctrl.opal_dev =
Re: [PATCH v3 6/7] nvme-pci: trigger device coredump on command timeout
> -static void __maybe_unused nvme_coredump_init(struct nvme_dev *dev); > -static void __maybe_unused nvme_coredump_logs(struct nvme_dev *dev); > -static void __maybe_unused nvme_coredump_complete(struct nvme_dev > *dev); > +static void nvme_coredump_init(struct nvme_dev *dev); > +static void nvme_coredump_logs(struct nvme_dev *dev); > +static void nvme_coredump_complete(struct nvme_dev *dev); You just have added those three prototypes in previous patch. Did I miss something here?