[SCSI] libfc: Enhanced exchange ID selection mechanism and fix related EMA selection...
authorKiran Patil <kiran.patil@intel.com>
Sat, 29 Jan 2011 00:04:39 +0000 (16:04 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Feb 2011 17:04:27 +0000 (11:04 -0600)
commit6c8cc1c003cee1c4290f5d8c684912d60354056a
tree883c9a03940b76da5751f67d7171a235a336c23a
parent62bdb6455e8326f864ae1b43b4c4db7f630edc1c
[SCSI] libfc: Enhanced exchange ID selection mechanism and fix related EMA selection logic.

Problem:

In case of exchange responder case, EMA selection was defaulted to the
last EMA from EMA list (lport.ema_list).  If exchange ID is selected
from offload pool and not setup DDP, resulting into incorrect
selection of EMA, and eventually dropping the packet because unable to
find exchange.

Fix:

Enhanced the exchange ID selection (depending upon request type and
exchange responder) Made necessary enhancement in EMA selection
algorithm.

Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_exch.c