[SCSI] iscsi class: export pid of process that created
authorMike Christie <michaelc@cs.wisc.edu>
Mon, 5 Dec 2011 22:44:01 +0000 (16:44 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 15 Dec 2011 06:57:40 +0000 (10:57 +0400)
commit0c70d84b794c9a99f7395b617ecaef34c00d82ec
tree135e42139e5404d73685c03ff040ce9557a000e8
parentef8c98543c3ad75240599d4032f7e56b793740a9
[SCSI] iscsi class: export pid of process that created

There could be multiple userspace entities creating/destroying/
recoverying sessions and also the kernel's iscsi drivers could
be doing this too. If the userspace apps do try to manage the kernel
ones it can get the driver/fw out of sync and cause the user to
loose the root disk, oopses or ping ponging becasue userspace
wants to do one thing but the kernel manager thought we
are trying to do another.

This patch fixes the problem by just exporting the pid of
the entity that created the session. Userspace programs like
iscsid, iscsiadm, iscsistart, qlogic's tools, etc, can then
figure out which sessions they own and only manage them.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_transport_iscsi.c
include/scsi/scsi_transport_iscsi.h
This page took 0.027729 seconds and 5 git commands to generate.