]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iscsi class: export pid of process that created session
authorMike Christie <mchristi@redhat.com>
Mon, 31 Oct 2011 20:16:33 +0000 (15:16 -0500)
committerGuru Anbalagane <guru.anbalagane@oracle.com>
Fri, 16 Dec 2011 02:35:18 +0000 (18:35 -0800)
commitd306dd23f004d855508167dff1e76be939f607b3
tree10af0931e47f6afa744bce79b6fe97405c6b13b4
parentbf8f76685223a127223d4612bd6d6767dcdd1d71
iscsi class: export pid of process that created session

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.

Just found the problem. Patch has not been sent upstream.
drivers/scsi/scsi_transport_iscsi.c
include/scsi/scsi_transport_iscsi.h