Roland Dreier
9c58b7ddd7
target: Simplify fabric sense data length handling
...
Every fabric driver has to supply a se_tfo->set_fabric_sense_len()
method, just so iSCSI can return an offset of 2. However, every fabric
driver is already allocating a sense buffer and passing it into the
target core, either via transport_init_se_cmd() or target_submit_cmd().
So instead of having iSCSI pass the start of its sense buffer into the
core and then later tell the core to skip the first 2 bytes, it seems
easier for iSCSI just to do the offset of 2 when it passes the sense
buffer into the core. Then we can drop the se_tfo->set_fabric_sense_len()
everywhere, and just add a couple of lines of code to iSCSI to set the
sense data length to the beginning of the buffer right before it sends
it over the network.
(nab: Remove .set_fabric_sense_len usage from tcm_qla2xxx_npiv_ops +
change transport_get_sense_buffer to follow v3.6-rc6 code w/o
->set_fabric_sense_len usage)
Signed-off-by: Roland Dreier <roland@purestorage.com >
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org >
2012-09-17 17:12:58 -07:00
..
2012-07-20 08:59:04 +01:00
2012-03-30 16:03:15 -07:00
2011-03-31 11:26:23 -03:00
2012-07-08 09:49:14 +01:00
2012-07-20 08:58:31 +01:00
2012-03-28 15:58:21 -07:00
2012-05-30 13:34:22 +04:00
2012-07-20 08:59:05 +01:00
2012-07-24 18:11:22 -07:00
2012-07-19 11:17:30 -07:00
2012-07-24 18:11:22 -07:00
2012-07-20 08:58:42 +01:00
2011-07-26 16:49:47 -07:00
2012-07-20 08:58:55 +01:00
2011-06-29 16:05:41 -05:00
2012-03-28 11:33:24 +11:00
2012-07-20 08:58:51 +01:00
2012-07-20 08:58:56 +01:00
2012-07-20 09:05:54 +01:00
2012-07-20 08:58:54 +01:00
2012-08-22 09:39:25 +04:00
2012-08-22 09:38:49 +04:00
2012-07-20 08:58:54 +01:00
2012-02-25 08:25:09 -06:00
2012-01-13 09:32:20 +10:30
2012-07-20 08:58:54 +01:00
2012-09-17 17:12:58 -07:00
2012-07-20 08:59:02 +01:00
2012-01-10 17:01:18 -06:00
2012-07-20 08:59:02 +01:00
2011-09-26 09:28:58 -05:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2010-12-22 18:57:02 +01:00
2011-10-31 19:31:24 -04:00
2011-10-31 19:31:24 -04:00
2012-03-28 18:30:03 +01:00
2012-07-20 10:19:25 +02:00
2012-06-28 11:44:36 +02:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2011-06-29 15:11:21 -05:00
2012-04-22 20:16:49 +02:00
2012-04-22 20:16:49 +02:00
2012-03-31 13:31:23 -07:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2010-10-22 10:52:56 -07:00
2011-05-23 09:12:26 -07:00
2012-01-13 09:32:20 +10:30
2011-03-31 11:26:23 -03:00
2011-05-01 10:22:40 -05:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2011-05-01 10:22:40 -05:00
2011-05-01 10:22:40 -05:00
2012-04-05 17:09:40 -07:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2010-12-31 09:50:09 -06:00
2012-03-28 18:30:03 +01:00
2011-12-06 09:53:40 +01:00
2011-10-31 19:31:24 -04:00
2012-07-20 08:58:40 +01:00
2012-05-10 09:19:39 +01:00
2012-05-10 09:19:39 +01:00
2012-05-10 09:19:39 +01:00
2012-07-20 08:58:30 +01:00
2012-07-20 08:58:30 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-04-23 12:11:47 +01:00
2012-03-28 15:09:28 +01:00
2012-03-20 21:48:19 +08:00
2011-03-31 11:26:23 -03:00
2012-01-03 22:54:55 -05:00
2012-04-21 15:52:25 -04:00
2011-02-24 12:41:10 -05:00
2012-01-02 13:04:55 +01:00
2012-07-20 08:59:04 +01:00
2012-03-22 12:55:29 -07:00
2012-02-19 08:09:00 -06:00
2011-10-31 19:31:24 -04:00
2012-03-28 18:30:03 +01:00
2012-01-22 14:50:03 +01:00
2012-03-28 18:30:03 +01:00
2012-07-20 08:58:13 +01:00
2012-07-20 08:58:38 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2011-08-27 08:36:58 -06:00
2011-08-27 08:36:58 -06:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2011-05-10 10:16:21 +02:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2011-12-15 16:35:38 +01:00
2012-02-21 11:40:37 +01:00
2010-11-16 13:33:23 -08:00
2011-10-31 19:31:24 -04:00
2012-04-30 13:25:43 +02:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2012-03-31 13:31:23 -07:00
2011-06-29 15:08:47 -05:00
2012-08-22 09:42:54 +04:00
2011-10-31 19:31:23 -04:00
2012-08-22 09:42:31 +04:00
2012-06-29 16:46:02 -07:00
2012-07-20 08:58:55 +01:00
2012-07-20 09:05:54 +01:00
2011-05-28 23:12:11 -07:00
2012-08-22 09:42:54 +04:00
2012-07-20 08:58:45 +01:00
2011-10-31 19:31:23 -04:00
2011-05-01 10:20:10 -05:00
2011-05-24 12:38:36 -04:00
2012-08-01 09:02:41 -07:00
2012-08-01 09:02:41 -07:00
2012-02-29 15:43:54 -06:00
2012-05-10 09:06:12 +01:00
2012-07-20 09:07:37 +01:00
2012-01-03 22:54:07 -05:00
2012-03-20 21:48:19 +08:00
2012-07-20 08:59:00 +01:00
2012-02-19 10:14:52 -06:00
2011-06-29 12:14:25 -05:00
2012-05-17 10:08:57 +01:00
2011-04-06 06:19:38 -07:00
2012-05-17 19:03:54 -04:00
2012-01-02 13:04:55 +01:00
2011-10-31 19:31:24 -04:00
2011-07-21 14:15:58 -07:00
2011-07-21 14:15:58 -07:00
2012-03-31 13:31:23 -07:00
2012-05-10 08:32:34 +01:00
2010-11-16 13:33:23 -08:00
2012-04-25 09:51:43 +01:00
2011-06-29 15:15:05 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2011-02-28 01:36:39 -07:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2011-05-01 10:22:40 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2012-07-20 08:59:03 +01:00
2012-03-27 08:26:36 +01:00
2012-03-27 08:26:36 +01:00
2011-05-26 13:19:00 -07:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00