]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iscsi/iser-target: Use list_del_init for ->i_conn_node
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 3 Feb 2014 20:53:51 +0000 (12:53 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 5 Mar 2014 01:54:09 +0000 (17:54 -0800)
commit5159d763f60af693a3fcec45dce2021f66e528a4
tree9781d7b62561338f36bbd1bcc0ec093fa343a041
parenta2a99cea5ec7c1e47825559f0e75a4efbcf8aee3
iscsi/iser-target: Use list_del_init for ->i_conn_node

There are a handful of uses of list_empty() for cmd->i_conn_node
within iser-target code that expect to return false once a cmd
has been removed from the per connect list.

This patch changes all uses of list_del -> list_del_init in order
to ensure that list_empty() returns false as expected.

Acked-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: <stable@vger.kernel.org> #3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target_erl2.c