Re: [PATCH 2/5] scsi: make scsi_eh_scmd_add() always succeed

2016-06-22 Thread Christoph Hellwig
Agreed, I think trying to handle these sorts of errors isn't going to be helpful, while the WARN_ON at least gives us a chance to diagnose the issue if it ever happened. > + WARN_ON(!shost->ehandler); > > spin_lock_irqsave(shost->host_lock, flags); > + WARN_ON(shost->shost_state

[PATCH 2/5] scsi: make scsi_eh_scmd_add() always succeed

2016-06-20 Thread Hannes Reinecke
scsi_eh_scmd_add() currently only will fail if no error handler thread is started (which will never be the case) or if the state machine encounters an illegal transition. But if we're encountering an invalid state transition chances is we cannot fixup things with the error handler. So better add

Re: [PATCH 2/5] scsi: make scsi_eh_scmd_add() always succeed

2015-12-03 Thread Johannes Thumshirn
On Thu, 2015-12-03 at 08:17 +0100, Hannes Reinecke wrote: > scsi_eh_scmd_add() currently only will fail if no > error handler thread is started (which will never be the > case) or if the state machine encounters an illegal transition. > > But if we're encountering an invalid state transition >

Re: [PATCH 2/5] scsi: make scsi_eh_scmd_add() always succeed

2015-12-03 Thread Christoph Hellwig
On Thu, Dec 03, 2015 at 08:17:40AM +0100, Hannes Reinecke wrote: > scsi_eh_scmd_add() currently only will fail if no > error handler thread is started (which will never be the > case) or if the state machine encounters an illegal transition. > > But if we're encountering an invalid state

[PATCH 2/5] scsi: make scsi_eh_scmd_add() always succeed

2015-12-02 Thread Hannes Reinecke
scsi_eh_scmd_add() currently only will fail if no error handler thread is started (which will never be the case) or if the state machine encounters an illegal transition. But if we're encountering an invalid state transition chances is we cannot fixup things with the error handler. So better add