]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] bfa: fix the issue of not handling scsi_cmnd sg chaining case
authorJing Huang <huangj@brocade.com>
Fri, 19 Mar 2010 18:06:05 +0000 (11:06 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:24:17 +0000 (09:24 -0500)
commit02d9e0f207f62b2cbf115858aa766dd1f4c270be
treefdebad0f55465301bfcbd4f119311f63d358c353
parent7a3b8c7ae2fe2d47741c8cb8037625310a9b7937
[SCSI] bfa: fix the issue of not handling scsi_cmnd sg chaining case

Currently the driver doesn't take into consideraion of possible sg chaining
when it walks through the sg list. This is fixed by using the sg_next()
which automatically handles the chaining case. Obosolete code is removed
as a result of this change.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bfa/bfa_cb_ioim_macros.h
drivers/scsi/bfa/bfa_ioim.c