[SCSI] fnic: Hitting BUG_ON(io_req->abts_done) in fnic_rport_exch_reset
authorSesidhar Beddel <sebaddel@cisco.com>
Mon, 9 Sep 2013 20:31:49 +0000 (13:31 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 11 Sep 2013 22:54:08 +0000 (15:54 -0700)
commit1259c5dc752474f74ef3da451dadeafce1d48b55
treeba0ac325d904daf55d3e6467aa15e5e94572bc78
parent318c7c4325ad2c4e969a0b79008192ce8c054463
[SCSI] fnic: Hitting BUG_ON(io_req->abts_done) in fnic_rport_exch_reset

Hitting BUG_ON(io_req->abts_done) in fnic_rport_exch_reset in case of
timing issue and also to some extent locking issue where abts and terminate
is happening around same timing.

The code changes are intended to update CMD_STATE(sc) and
io_req->abts_done together.

Signed-off-by: Sesidhar Beddel <sebaddel@cisco.com>
Signed-off-by: Hiral Patel <hiralpat@cisco.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fnic/fnic_scsi.c