Re: [Scst-devel] Fwd: Re: linuxcon 2010...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vladislav Bolkhovitin
Date: Tuesday, August 24, 2010 - 12:48 pm

James Bottomley, on 08/24/2010 06:57 PM wrote:

Tomonori, Mike, could you comment on that, please?
 

Yes, but we on the target side would not be able to implement the ABI compatible interface without using library functions provided by those C files. Or, at least, it would be much harder.

So, would it be OK for you to keep those files?
 

I mean that if we keep those 2 files to ease our ABI compatibility effort, it would effectively mean that we would leave STGT merged. It isn't something we would create, it just would be so itself as a matter of fact. Ultimately, STGT is an user space engine. What it has in the kernel is the interface helper functions to interact with the in-kernel drivers. The simplest way to achieve the ABI compatibility is to make a backend module acting as an STGT in-target driver.

(Actually, I may not ask it, because this is the way how LIO seems[1] implemented that, which was approved on the LSF summit. I only want to make all pros and cons clear from the very beginning.)

Thanks,
Vlad

1. I wrote "seems", because currently LIO has the following code for STGT commands execution: 

int stgt_do_task(se_task_t *task)
{
	stgt_plugin_task_t *st = (stgt_plugin_task_t *) task->transport_req;
	struct Scsi_Host *sh = task->se_dev->se_hba->hba_ptr;
	struct scsi_cmnd *sc;
	int tag = MSG_SIMPLE_TAG;

	sc = scsi_host_get_command(sh, st->stgt_direction, GFP_KERNEL);
	if (!sc) {
		printk(KERN_ERR "Unable to allocate memory for struct"
			" scsi_cmnd\n");
		return PYX_TRANSPORT_LU_COMM_FAILURE;
	}

	memcpy(sc->cmnd, st->stgt_cdb, MAX_COMMAND_SIZE);
	sc->sdb.length = task->task_size;
	sc->sdb.table.sgl = task->task_sg;
	sc->tag = tag;

	BUG();
#warning FIXME: Get struct scsi_lun for scsi_tgt_queue_command()
#if 0
	err = scsi_tgt_queue_command(sc, itn_id, (struct scsi_lun *)&cmd->lun,
			cmd->tag);
	if (err) {
		printk(KERN_INFO "scsi_tgt_queue_command() failed for sc:"
			" %p\n", sc);
		scsi_host_put_command(sh, sc);
	}
#endif
	return PYX_TRANSPORT_SENT_TO_TRANSPORT;
}

which means that this pluging completely not functioning.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Chetan Loke, (Wed Aug 18, 7:58 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., James Bottomley, (Wed Aug 18, 8:11 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Bart Van Assche, (Wed Aug 18, 8:30 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Chetan Loke, (Wed Aug 18, 9:04 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., James Bottomley, (Wed Aug 18, 9:18 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Bart Van Assche, (Wed Aug 18, 9:19 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Joe Landman, (Wed Aug 18, 9:28 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Wed Aug 18, 10:50 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Chetan Loke, (Wed Aug 18, 10:51 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Wed Aug 18, 10:52 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Wed Aug 18, 10:52 am)
RE: [Scst-devel] Fwd: Re: linuxcon 2010..., jack wang, (Wed Aug 18, 6:18 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Ruben Laban, (Fri Aug 20, 6:46 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Sat Aug 21, 11:42 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Sat Aug 21, 1:25 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., James Bottomley, (Sat Aug 21, 1:43 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Bart Van Assche, (Sun Aug 22, 12:39 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., James Bottomley, (Sun Aug 22, 1:29 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Joe Landman, (Mon Aug 23, 6:47 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Bart Van Assche, (Mon Aug 23, 8:12 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Chetan Loke, (Mon Aug 23, 9:07 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Chetan Loke, (Mon Aug 23, 11:03 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Mon Aug 23, 12:41 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Pasi Kärkkäinen, (Tue Aug 24, 12:25 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Tue Aug 24, 7:41 am)
Re: Linux I/O subsystem performance (was: linuxcon 2010...), Vladislav Bolkhovitin, (Tue Aug 24, 7:43 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Chris Weiss, (Tue Aug 24, 7:51 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Chetan Loke, (Tue Aug 24, 7:55 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Matthew Wilcox, (Tue Aug 24, 7:56 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., James Bottomley, (Tue Aug 24, 7:57 am)
Re: Linux I/O subsystem performance, Vladislav Bolkhovitin, (Tue Aug 24, 10:51 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Tue Aug 24, 11:08 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Tue Aug 24, 12:48 pm)
Re: Linux I/O subsystem performance, Matthew Wilcox, (Tue Aug 24, 1:40 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Tue Aug 24, 2:23 pm)
Re: Linux I/O subsystem performance, Vladislav Bolkhovitin, (Wed Aug 25, 12:12 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Konrad Rzeszutek Wilk, (Wed Aug 25, 3:20 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Ted Ts'o, (Wed Aug 25, 3:45 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Thu Aug 26, 1:11 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Thu Aug 26, 2:23 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Sat Aug 28, 10:32 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Sat Aug 28, 1:47 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Mon Aug 30, 1:47 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Mon Aug 30, 2:46 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Thu Sep 2, 12:38 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Thu Sep 2, 1:25 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Dmitry Torokhov, (Sun Sep 5, 1:18 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Sun Sep 5, 2:50 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Mark Deneen, (Sun Sep 5, 4:13 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Dmitry Torokhov, (Sun Sep 5, 4:41 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Sun Sep 5, 4:59 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Sun Sep 5, 5:12 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Mark Deneen, (Sun Sep 5, 5:58 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Sun Sep 5, 6:34 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Dmitry Torokhov, (Sun Sep 5, 9:56 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Dmitry Torokhov, (Sun Sep 5, 10:04 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., James Bottomley, (Mon Sep 6, 3:39 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Bart Van Assche, (Mon Sep 6, 4:02 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., James Bottomley, (Mon Sep 6, 4:27 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Mon Sep 6, 8:26 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Chetan Loke, (Mon Sep 6, 10:28 am)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Greg KH, (Mon Sep 6, 2:16 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Mon Sep 6, 2:47 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Mon Sep 6, 2:52 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Nicholas A. Bellinger, (Mon Sep 6, 2:55 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., david, (Mon Sep 6, 3:14 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Dmitry Torokhov, (Mon Sep 6, 5:44 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Chetan Loke, (Mon Sep 6, 8:45 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Bart Van Assche, (Mon Sep 6, 11:08 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Bart Van Assche, (Mon Sep 6, 11:15 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Dmitry Torokhov, (Mon Sep 6, 11:26 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Tue Sep 7, 1:14 pm)
Re: [Scst-devel] Fwd: Re: linuxcon 2010..., Vladislav Bolkhovitin, (Tue Sep 7, 1:14 pm)