Re: [PATCH] ibmvscsis: Move to struct ibmvscsis_vdev usage in fabric configfs handlers

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

 



On Sat, 30 Oct 2010 16:13:54 -0700
"Nicholas A. Bellinger" <nab@xxxxxxxxxxxxxxx> wrote:

> From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx>
> 
> This patch takes tomo-san original commit 94fdb0196151 and changes a handful
> of important items wrt to the fabric configfs logic.
> 
> Firstly, this patch introduces struct ibmvscsis_vdev and converts the
> VIO ibmvscsis_probe() and ibmvscsi_remove() callers to allocate/free
> struct ibmvscsis_vdev instead of the original usage of struct ibmvscsis_tpg
> which is intended to be allocated/freed respectively in ibmvscsis_make_tpg()
> and ibmvscsis_drop_tpg() fabric configfs handlers.

What happens if an initiator sends a crq command before an user
creates a tpg? Or what happens if an initiator sends a crq command
after removing a tpg?


> Secondly, this patch changes the metadata that is used to determine the
> fabric WWN and TPGT (collectively the TCM VIO SRP endpoint) layout for
> /sys/kernel/config/target/ibmvscsis/$WWN/tpgt_$TPGT/.  This patch will
> now use struct vio_dev->unit_address for $WWN, and dev_name(vio_dev->dev)
> for $TPGT.

I don't care much about this but vio_dev->unit_address ==
dev_name(vio_dev->dev), I think. See vio_register_device_node() in
arch/powerpc/kernel/vio.c. So it's odd a bit.

ibmvscsis model doesn't strictly follow the SRP SCSI model; no port,
wwpn, etc. 


>  The values passed in via configff for $WWN and $TPGT must match
> in ibmvscsis_make_tport() and ibmvscsis_make_tpg() against what has been
> automatically setup for each struct ibmvscsis_vdev in the VIO ibmvscsis_probe()
> callback.

As I said before, it's much better to create them automatically
instead of creating them via sysfs. The driver knows all nexuses to
handle.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux