search for: scan_wild_card

Displaying 6 results from an estimated 6 matches for "scan_wild_card".

2020 Sep 08
2
[PATCH] Rescan the entire target on transport reset when LUN is 0
...reset(struct virtio_scsi *vscsi, > > switch (virtio32_to_cpu(vscsi->vdev, event->reason)) { > case VIRTIO_SCSI_EVT_RESET_RESCAN: > - scsi_add_device(shost, 0, target, lun); > + if (lun == 0) { > + scsi_scan_target(&shost->shost_gendev, 0, target, > + SCAN_WILD_CARD, SCSI_SCAN_INITIAL); > + } else { > + scsi_add_device(shost, 0, target, lun); > + } > break; > case VIRTIO_SCSI_EVT_RESET_REMOVED: > sdev = scsi_device_lookup(shost, 0, target, lun); > Acked-by: Paolo Bonzini <pbonzini at redhat.com>
2020 Sep 08
2
[PATCH] Rescan the entire target on transport reset when LUN is 0
...reset(struct virtio_scsi *vscsi, > > switch (virtio32_to_cpu(vscsi->vdev, event->reason)) { > case VIRTIO_SCSI_EVT_RESET_RESCAN: > - scsi_add_device(shost, 0, target, lun); > + if (lun == 0) { > + scsi_scan_target(&shost->shost_gendev, 0, target, > + SCAN_WILD_CARD, SCSI_SCAN_INITIAL); > + } else { > + scsi_add_device(shost, 0, target, lun); > + } > break; > case VIRTIO_SCSI_EVT_RESET_REMOVED: > sdev = scsi_device_lookup(shost, 0, target, lun); > Acked-by: Paolo Bonzini <pbonzini at redhat.com>
2020 Sep 08
0
[PATCH] Rescan the entire target on transport reset when LUN is 0
...reset(struct virtio_scsi *vscsi, > > switch (virtio32_to_cpu(vscsi->vdev, event->reason)) { > case VIRTIO_SCSI_EVT_RESET_RESCAN: > - scsi_add_device(shost, 0, target, lun); > + if (lun == 0) { > + scsi_scan_target(&shost->shost_gendev, 0, target, > + SCAN_WILD_CARD, SCSI_SCAN_INITIAL); > + } else { > + scsi_add_device(shost, 0, target, lun); > + } > break; > case VIRTIO_SCSI_EVT_RESET_REMOVED: > sdev = scsi_device_lookup(shost, 0, target, lun); > -- > 2.20.1
2020 Sep 08
0
[PATCH] Rescan the entire target on transport reset when LUN is 0
...*vscsi, >> >> switch (virtio32_to_cpu(vscsi->vdev, event->reason)) { >> case VIRTIO_SCSI_EVT_RESET_RESCAN: >> - scsi_add_device(shost, 0, target, lun); >> + if (lun == 0) { >> + scsi_scan_target(&shost->shost_gendev, 0, target, >> + SCAN_WILD_CARD, SCSI_SCAN_INITIAL); >> + } else { >> + scsi_add_device(shost, 0, target, lun); >> + } >> break; >> case VIRTIO_SCSI_EVT_RESET_REMOVED: >> sdev = scsi_device_lookup(shost, 0, target, lun); >> > > > Acked-by: Paolo Bonzini <pbonzini a...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...to place all target objects below the rport object. So this * routine must invoke the scsi_scan_target() routine with the rport * object as the parent. */ static int fc_user_scan(struct Scsi_Host *shost, uint channel, uint id, uint lun) { uint chlo, chhi; uint tgtlo, tgthi; if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || ((lun != SCAN_WILD_CARD) && (lun > shost->max_lun))) return -EINVAL; if (channel == SCAN_WILD_CARD) { chlo = 0; chhi = shost->max_channel + 1;...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...to place all target objects below the rport object. So this * routine must invoke the scsi_scan_target() routine with the rport * object as the parent. */ static int fc_user_scan(struct Scsi_Host *shost, uint channel, uint id, uint lun) { uint chlo, chhi; uint tgtlo, tgthi; if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || ((lun != SCAN_WILD_CARD) && (lun > shost->max_lun))) return -EINVAL; if (channel == SCAN_WILD_CARD) { chlo = 0; chhi = shost->max_channel + 1;...