]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fnic: Using rport-_dd_data to check rport online instead of rport_lookup
authorJason Luo <zhangqing.luo@oracle.com>
Thu, 17 Mar 2016 03:29:50 +0000 (11:29 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 21 Mar 2016 16:00:49 +0000 (09:00 -0700)
commitc19cee6bbd336f86631a95d09ac5d0514776b0cf
tree98aa7ee3636cfe8aaf84aa00fea8d4703ecf6ef2
parent764cc5f52113ddbbe7aa15a24dc5618a31251e0e
fnic: Using rport-_dd_data to check rport online instead of rport_lookup

From: Satish Kharat <satishkh@cisco.com>

When issuing I/O we check if rport is online through libfc
rport_lookup() function which needs to be protected by mutex lock
that cannot acquired in I/O context. The change is to use midlayer
remote port’s dd_data which is preserved until its devloss timeout
and no protection is required.

Fnic driver version changed from 1.6.0.20 to 1.6.0.21

Signed-off-by: Satish Kharat <satishkh@cisco.com>
Orabug: 22918200
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/scsi/fnic/fnic.h
drivers/scsi/fnic/fnic_scsi.c