]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] fcoe: cleanup cpu selection for incoming requests
authorVasu Dev <vasu.dev@intel.com>
Wed, 27 Jul 2011 22:11:10 +0000 (15:11 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 28 Jul 2011 08:14:29 +0000 (12:14 +0400)
commit69dfe3c19bd8e36748c0dccab3f6d236b4869122
tree020ba7b16f20599c9d7cf1cca0aa4d11d22c494c
parent9f5959646ac2234a30834d739ea82b31a735a77b
[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