]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] zfcp: Simplify SBAL allocation to fix sparse warnings
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Fri, 19 Dec 2008 15:56:54 +0000 (16:56 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:24:36 +0000 (11:24 -0600)
commite0e54e7269c855d7ac8c4370f5321224bf8f6452
tree0b97af05604e62e1110fe6ba1cab5ee08374b8e4
parent2c6e57e2a96fa553ef8ae34a08b909df647a1a6c
[SCSI] zfcp: Simplify SBAL allocation to fix sparse warnings

When waiting for a request claim the SBAL before waiting. This way,
locking before each check of the free counter is not required and
sparse does not emit warnings for the complicated locking scheme.

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Acked-by: Felix Beck <felix@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/s390/scsi/zfcp_fsf.c