[SCSI] bnx2fc: call scsi_done if session goes to not ready from ready
authorNithin Nayak Sujir <nsujir@broadcom.com>
Mon, 25 Apr 2011 19:30:08 +0000 (12:30 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 1 May 2011 16:52:38 +0000 (11:52 -0500)
commit35dd71ae82afaef3980638c528b21f018c46211a
tree4d1a2463dcfc2a2d9f40d47857756ee2c40e13c1
parent0117ddb0c8df8e107bc8e9713c6638270638fff9
[SCSI] bnx2fc: call scsi_done if session goes to not ready from ready

If the session is not ready yet, we ask the SCSI-ml to retry. However, if the
session is just uploaded, we should not retry, but instead call scsi_done to
fail the IO.

Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bnx2fc/bnx2fc_io.c