Description of problem: Each process must have its own semarg structure - or they step on each others' toes - which could cause either deadlocks or smearing of the shared memory protected by the semaphore. Version-Release number of selected component (if applicable): iscsi-initiator-utils-6.2.0.871-0.18.fc12.src.rpm (Anything based on 871 series). How reproducible: Unknown. Steps to Reproduce: 1. Configure the iscsi initator util with at least two target devices. 2. Configure it to the maximum amount of logging 3. ????? Actual results: Logging can possibly cause a deadlock in waiting for semaphore access. Expected results: No deadlock to occur. Additional info: This is a backport of the patch from : http://git.kernel.org/?p=linux/kernel/git/mnc/open-iscsi.git;a=commitdiff;h=b95a7ca80b255f0c5b34b2669367b629c8489552;hp=fb4f2d3072bee96606d01e3535c100dc99b8d331 to the 871 series. Mike Christie posted Guy Kerens patch (I think). This patch is already in the EL6 build.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
I am going to resync the iscsi package to the upstream/rhel6 version, so this will get brought in. Thanks for the patch and report.
Event posted on 2010-08-17 09:26 JST by fuchi G'day Wade, A bugzilla has been opened, thank you so much!! And here is a HotFix request. please approve this request. http://seg.rdu.redhat.com/scripts/hotfix/edit.pl?id=5453 Kind regards, Fuchi This event sent from IssueTracker by fuchi issue 1256153
Fixed in iscsi-initiator-utils-6.2.0.871-0.19: http://people.redhat.com/mchristi/iscsi/rhel5.5.z/iscsi-initiator-utils/ This is what I am making for 5.5.z.
Patch is included as iscsi-initiator-utils-fix-semop-log.patch in iscsi-initiator-utils-6.2.0.871-0.20.el5 and compiles correctly.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: * Previously, the open-iscsi administration utility (iscsiadm) sent incorrect initiator task tags (ITT) when encountering a multi-PDU This caused the discovery to fail. With this update, the ITT initialization and allocation sends the correct tags and iscsiadm works as expected. (BZ#633122)
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -* Previously, the open-iscsi administration utility (iscsiadm) sent incorrect initiator task tags (ITT) when encountering a multi-PDU This caused the discovery to fail. With this update, the ITT initialization and allocation sends the correct tags and iscsiadm works as expected. (BZ#633122)+Previously, iscsid shared the 'semarg' structure between multiple devices and could cause a deadlock when waiting for the semaphore access. With this update, each process is assigned its own structure and deadlocks no longer occur.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -Previously, iscsid shared the 'semarg' structure between multiple devices and could cause a deadlock when waiting for the semaphore access. With this update, each process is assigned its own structure and deadlocks no longer occur.+Previously, iscsid shared the 'semarg' structure between multiple devices and thus caused a deadlock to occur when logging was initiated. With this update, each process is assigned its own structure and deadlocks no longer occurs during the logging process.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -Previously, iscsid shared the 'semarg' structure between multiple devices and thus caused a deadlock to occur when logging was initiated. With this update, each process is assigned its own structure and deadlocks no longer occurs during the logging process.+Due to iscsid sharing the "semarg" structure between multiple devices, a deadlock may have occurred when logging was initiated. With this update, each process is assigned its own structure, so that such deadlocks no longer occur.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0072.html