[PATCH v1] nvmet: Don't queue fatal error work if csts.cfs is set

J Freyensee james_p_freyensee at linux.intel.com
Mon Nov 7 10:07:39 PST 2016


On Sun, 2016-11-06 at 17:41 +0100, Christoph Hellwig wrote:
> On Sun, Nov 06, 2016 at 11:16:18AM +0200, Sagi Grimberg wrote:
> > 
> > In the transport, in case of an interal queue error like
> > error completion in rdma we trigger a fatal error. However,
> > multiple queues in the same controller can serr error completions
> > and we don't want to trigger fatal error work more than once.
> > 
> > Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
> 
> Looks fine, although I'd avoid the goto and just use a if blocks
> for the rest of the action..

I agree, this is such a short function, I would think the goto could be
removed and still have an obvious yet easy to maintain error return
path using basic if()/else().

But looks good otherwise.

Reviewed-by: Jay Freyensee <james_p_freyensee at linux.intel.com>


> 
> Reviewed-by: Christoph Hellwig <hch at lst.de>



More information about the Linux-nvme mailing list