[SCSI] fcoe: cleanup cpu selection for incoming requests
commitd272281c390eb6c3f1e70ed0337c9e619d99cd9c
authorVasu Dev <vasu.dev@intel.com>
Wed, 27 Jul 2011 22:11:10 +0000 (27 15:11 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 28 Jul 2011 08:14:29 +0000 (28 12:14 +0400)
tree020ba7b16f20599c9d7cf1cca0aa4d11d22c494c
parent980f5156ab2d75e0462f3811e8a92acd06b0577b
[SCSI] fcoe: cleanup cpu selection for incoming requests

Cleanup to:

- have selection for all types of frames, not just FCP.
- remove redundant cpu_online check once fcoe_select_cpu called
  as this is not required since later code flow check for offlined
  cpu.
- Simplify fcoe_select_cpu() by removing unnecessary checks to
  skip curr_cpu, this also fixes possibly infinite loop in case
  of curr_cpu is the only cpu while iterating in the loop.

This cleanup mainly applies to target as incoming request are
mostly for target, therefore Kiran has verified the patch
with target also.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Tested-by: Kiran Patil <kiran.patil@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fcoe/fcoe.c