Re: [PATCH 09/11] target_core_user: add backend plug/unplug callouts

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

 



>   * queue_cmd_ring - queue cmd to ring or internally
>   * @tcmu_cmd: cmd to queue
> @@ -1086,8 +1108,8 @@ static int queue_cmd_ring(struct tcmu_cmd *tcmu_cmd, sense_reason_t *scsi_err)
>  
>  	list_add_tail(&tcmu_cmd->queue_entry, &udev->inflight_queue);
>  
> -	/* TODO: only if FLUSH and FUA? */
> -	uio_event_notify(&udev->uio_info);
> +	if (!test_bit(TCM_DEV_BIT_PLUGGED, &udev->flags))
> +		uio_event_notify(&udev->uio_info);
>  
Do we need to keep the TODO ?
>  	return 0;
>  
> @@ -2840,6 +2862,8 @@ static struct target_backend_ops tcmu_ops = {
>  	.configure_device	= tcmu_configure_device,
>  	.destroy_device		= tcmu_destroy_device,
>  	.free_device		= tcmu_free_device,
> +	.unplug_device		= tcmu_unplug_device,
> +	.plug_device		= tcmu_plug_device,
>  	.parse_cdb		= tcmu_parse_cdb,
>  	.tmr_notify		= tcmu_tmr_notify,
>  	.set_configfs_dev_params = tcmu_set_configfs_dev_params,





[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