]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi-target: Fix processing of OOO commands
authorShlomo Pongratz <shlomop@mellanox.com>
Sun, 5 May 2013 14:36:26 +0000 (17:36 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 7 May 2013 23:51:58 +0000 (16:51 -0700)
commite4d537fa09c9f57e5c4420943df40d8a4f8430ca
treed737a4dd65cfa7754277ae53a97fc8109c831b99
parent1758603cd740de9c736ab0c95f624b84499e406a
iscsi-target: Fix processing of OOO commands

Fix two issues in OOO commands processing done at iscsit_attach_ooo_cmdsn.

Handle command serial numbers wrap around by using iscsi_sna_lt and not regular comparisson.

The routine iterates until it finds an entry whose serial number is greater than the serial number of
the new one, thus the new entry should be inserted before that entry and not after.

Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_erl1.c