[SCSI] zfcp: Fix sparse warning by providing new entry in dbf
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Mon, 19 May 2008 10:17:47 +0000 (12:17 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 5 Jun 2008 14:27:15 +0000 (09:27 -0500)
commitaa0fec62391cd429385e7f3f9fc4a1fb8e2d1218
tree24cec104ec5bcea8fe4d12e1b158f6f0a105a080
parent7337891f381f856a63595392d7e79f2580912bf7
[SCSI] zfcp: Fix sparse warning by providing new entry in dbf

drivers/s390/scsi/zfcp_dbf.c:692:2: warning: context imbalance in
'zfcp_rec_dbf_event_thread' - different lock contexts for basic block

Replace the parameter indicating if the lock is held with a new entry
function that only acquires the lock. This makes the lock handling
more visible and removes the sparse warning.

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Martin Peschke <mp3@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/s390/scsi/zfcp_dbf.c
drivers/s390/scsi/zfcp_erp.c
drivers/s390/scsi/zfcp_ext.h