提交 35dc2585 编写于 作者: A Andreas Herrmann 提交者: James Bottomley

[SCSI] zfcp: correctly set this_id for hosts

It fixes a bug in zfcp which provokes a race
in scsi_scan.c. Finally this can lead to an Oops like:

kernel BUG at fs/sysfs/symlink.c:87!

Correctly set this_id for the host. Otherwise we provoke
a race between scsi_target_reap_work and concurrent
scsi_add_device.
Signed-off-by: NAndreas Herrmann <aherrman@de.ibm.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 98acfc7e
...@@ -68,7 +68,7 @@ struct zfcp_data zfcp_data = { ...@@ -68,7 +68,7 @@ struct zfcp_data zfcp_data = {
eh_host_reset_handler: zfcp_scsi_eh_host_reset_handler, eh_host_reset_handler: zfcp_scsi_eh_host_reset_handler,
/* FIXME(openfcp): Tune */ /* FIXME(openfcp): Tune */
can_queue: 4096, can_queue: 4096,
this_id: 0, this_id: -1,
/* /*
* FIXME: * FIXME:
* one less? can zfcp_create_sbale cope with it? * one less? can zfcp_create_sbale cope with it?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册