running discovery over iser session/connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nic,

I'd like to check with you what would be the easiest way to enhance the LIO iser code such that discovery can be carried out over iser session/connection too, basically from the initiator we send TEXT PDU of type sendtargets, and I hit this warning.


[ 2414.799129] i_buf: iqn.1994-05.com.redhat:e977fe6d73e, s_buf: Discovery, t_buf: (null)
[ 2414.801701] Got unknown iSCSI OpCode: 0x04
[ 2414.823390] Pid: 10971, comm: kworker/0:0 Not tainted 3.9.0-rc3-perf+ #13
[ 2414.823394] Call Trace:
[ 2414.823403] [<ffffffffa03aecce>] ? isert_cq_rx_work+0x12e/0x820 [ib_isert]
[ 2414.823408]  [<ffffffff810534d0>] ? process_one_work+0x140/0x3c0
[ 2414.823410]  [<ffffffff81053b9b>] ? worker_thread+0x11b/0x440
[ 2414.823417]  [<ffffffff81061dd0>] ? __wake_up_common+0x50/0x80
[ 2414.823419]  [<ffffffff81053a80>] ? manage_workers+0x330/0x330
[ 2414.823421]  [<ffffffff81053a80>] ? manage_workers+0x330/0x330
[ 2414.823424]  [<ffffffff8105a1be>] ? kthread+0xce/0xe0
[ 2414.823430]  [<ffffffff8105a0f0>] ? kthread_parkme+0x30/0x30
[ 2414.823433]  [<ffffffff813e1c2c>] ? ret_from_fork+0x7c/0xb0
[ 2414.823436]  [<ffffffff8105a0f0>] ? kthread_parkme+0x30/0x30
[ 2445.881684] i_buf: iqn.1994-05.com.redhat:e977fe6d73e, s_buf: Discovery, t_buf: (null)


To test that from the initiator (thanks Mike!) all you need to do is the following command and the patch below

$ iscsiadm -m discovery -t st -p ip:port -I iser -d 8



index f19b099..7d242c3 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -700,7 +700,7 @@ static struct scsi_host_template iscsi_iser_sht = {
 static struct iscsi_transport iscsi_iser_transport = {
        .owner                  = THIS_MODULE,
        .name                   = "iser",
-       .caps                   = CAP_RECOVERY_L0 | CAP_MULTI_R2T,
+ .caps = CAP_RECOVERY_L0 | CAP_MULTI_R2T | CAP_TEXT_NEGO,
        /* session management */
        .create_session         = iscsi_iser_session_create,
        .destroy_session        = iscsi_iser_session_destroy,

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux