Re: Make SCSI error handler code easier to understand

2014-05-29 Thread James Bottomley
On Wed, 2014-05-28 at 16:15 -0400, Joe Lawrence wrote: > On Mon, 26 May 2014 17:12:27 +0200 > Bart Van Assche wrote: > > > Every now and then someone asks how it is avoided that the SCSI error > > handler and the SCSI completion handler are invoked concurrently for > > the same SCSI command. Henc

Re: Make SCSI error handler code easier to understand

2014-05-28 Thread Joe Lawrence
On Mon, 26 May 2014 17:12:27 +0200 Bart Van Assche wrote: > Every now and then someone asks how it is avoided that the SCSI error > handler and the SCSI completion handler are invoked concurrently for > the same SCSI command. Hence this patch series that should make the SCSI > error handler code

Re: [PATCH 3/3] Make SCSI error handler code easier to understand

2014-05-26 Thread Hannes Reinecke
On 05/26/2014 05:15 PM, Bart Van Assche wrote: Every now and then someone asks how it is avoided that the SCSI error handler and the SCSI completion handler are invoked concurrently for the same SCSI command. Add a few WARN_ON_ONCE() statements that make it clear how this is avoided. Signed-off-

[PATCH 3/3] Make SCSI error handler code easier to understand

2014-05-26 Thread Bart Van Assche
Every now and then someone asks how it is avoided that the SCSI error handler and the SCSI completion handler are invoked concurrently for the same SCSI command. Add a few WARN_ON_ONCE() statements that make it clear how this is avoided. Signed-off-by: Bart Van Assche Cc: Hannes Reinecke Cc: Pao

Make SCSI error handler code easier to understand

2014-05-26 Thread Bart Van Assche
Every now and then someone asks how it is avoided that the SCSI error handler and the SCSI completion handler are invoked concurrently for the same SCSI command. Hence this patch series that should make the SCSI error handler code a little easier to understand. This patch series consists of the fo