The NetBSD Project

CVS log for src/sys/dev/iscsi/iscsi_ioctl.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / iscsi

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Nov 3 10:53:02 2024 UTC (5 months, 3 weeks ago) by mlelstv
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -6 lines
Release cleanup mutex before calling kill_connection.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Nov 3 10:50:21 2024 UTC (5 months, 3 weeks ago) by mlelstv
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +17 -1 lines
Take lock when updating conn state.

Revision 1.33.4.2: download - view: text, markup, annotated - select for diffs
Fri Nov 1 15:06:22 2024 UTC (5 months, 3 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.33.4.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.4.1: +15 -13 lines
Pull up following revision(s) (requested by rin in ticket #997):

	sys/dev/iscsi/iscsi_ioctl.c: revision 1.35
	sys/dev/iscsi/iscsi_main.c: revision 1.42
	sys/dev/iscsi/iscsi_send.c: revision 1.41

Use correct status value SCSI_BUSY (0x08) instead of XS_BUSY (7) when
running out of sessions. The bug had no impact as scsipi was only comparing
against SCSI_CHECK (0x02) and SCSI_QUEUE_FULL (0x28).

Avoid race in timeout handling.

Don't try to wake up CCB without connection (which led to a NULL pointer
deref).

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Aug 24 09:39:44 2024 UTC (8 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +15 -13 lines
Avoid race in timeout handling.
Don't try to wake up CCB without connection (which led to a NULL pointer deref).

Revision 1.33.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 18 14:15:58 2023 UTC (16 months, 1 week ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +17 -17 lines
Pull up following revision(s) (requested by mlelstv in ticket #505):

	sys/dev/iscsi/iscsi_utils.c: revision 1.29
	sys/dev/iscsi/iscsi.h: revision 1.5
	sys/dev/iscsi/iscsi_ioctl.c: revision 1.34
	sys/dev/iscsi/iscsi_globals.h: revision 1.28
	sys/dev/iscsi/iscsi_text.c: revision 1.14
	sys/dev/iscsi/iscsi_send.c: revision 1.40

Adapt to bignum representation of target.

Fix negotiation for mutual authentication.

Prepare for more CHAP types.

Fix crashes for invalid socket descriptors passed to kernel.

Protect usecount with connection mutex, avoids race on connection close.

Minor cosmetics.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Nov 25 10:08:27 2023 UTC (17 months ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +17 -17 lines
Adapt to bignum representation of target.
Fix negotiation for mutual authentication.
Prepare for more CHAP types.
Fix crashes for invalid socket descriptors passed to kernel.
Protect usecount with connection mutex, avoids race on connection close.
Minor cosmetics.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Sep 13 13:09:16 2022 UTC (2 years, 7 months ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +91 -42 lines
kill_session now uses the session id to avoid stale session pointers.
protect network socket with rwlock to handle recconnects.
always take over socket from iscsid to prevent leaks.
keep a good connection alive.
don't forget child device when config_detach fails.
fix locking when reassigning CCBs.
pducount is protected by lock, no need for atomic.
some code rework, refined debug messages.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Jun 21 23:08:16 2020 UTC (4 years, 10 months ago) by chs
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +24 -100 lines
avoid the use of UVM internals in the iscsi ioctl code.
copyin/out are fine in this context.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue May 26 00:50:54 2020 UTC (4 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
Catch up with the usage of struct vmspace::vm_refcnt

Use the dedicated reference counting routines.

Change the type of struct vmspace::vm_refcnt and struct vm_map::ref_count
to volatile.

Remove the unnecessary vm->vm_map.misc_lock locking in process_domem().

Reviewed by <ad>

Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:12 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +2 -2 lines
Sync with HEAD

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:48 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +2 -2 lines
Sync with HEAD, resolve a few conflicts

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Dec 7 14:59:19 2018 UTC (6 years, 4 months ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
interlock isn't taken when cleaning up.

Revision 1.25.6.1: download - view: text, markup, annotated - select for diffs
Thu Dec 21 19:17:43 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +21 -11 lines
Pull up following revision(s) (requested by mlelstv in ticket #437):
	sys/dev/iscsi/iscsi_ioctl.c: 1.26-1.27
	sys/dev/iscsi/iscsi_main.c: 1.26
	sys/dev/iscsi/iscsi_send.c: 1.35
Fix session cleanup.
--
add debug messages
-
use same lock for ref/deref.
--
unreference session only for responses to SCSI commands.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Dec 6 04:29:58 2017 UTC (7 years, 4 months ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2 lines
Fix typo

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Dec 3 19:07:10 2017 UTC (7 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +351 -352 lines
- add a prefix to struct members (but not the ioctl ones because they affect
  the API)
- use consistent variable names.

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:05 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +585 -275 lines
update from HEAD

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Dec 3 07:23:45 2017 UTC (7 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
use same lock for ref/deref.

Revision 1.6.14.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:04 2017 UTC (7 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.6.14.4: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.14.4: +42 -18 lines
Sync with HEAD

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jun 24 11:31:26 2017 UTC (7 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +19 -9 lines
Fix session cleanup.

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:46 2017 UTC (8 years ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +24 -10 lines
Sync with HEAD

Revision 1.22.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:28 2017 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.22.2.1: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.2.1: +24 -10 lines
Sync with HEAD

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Feb 25 12:03:57 2017 UTC (8 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +15 -7 lines
Use correct lock for session wakeup.

Revision 1.6.14.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:28 2017 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.6.14.3: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.14.3: +29 -18 lines
Sync with HEAD

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Feb 5 12:05:46 2017 UTC (8 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +10 -4 lines
Destroy callouts when cleaning up.

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:32 2017 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +29 -18 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Dec 25 06:55:28 2016 UTC (8 years, 4 months ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +29 -18 lines
Lock correctly around CV calls.
Fix handling of session termination.
Enable MPSAFE processing for scsipi.

Revision 1.6.14.3: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:03 2016 UTC (8 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.6.14.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.14.2: +512 -189 lines
Sync with HEAD

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jun 15 04:30:30 2016 UTC (8 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +192 -123 lines
Remove throttling code, instead signal scsipi layer to reduce the openings
and retry the command. Start with a small openings number and let scsipi
request to grow it up to the current send window.

Adjust ccb and pdu counts to avoid ressource shortages. These are still
very ad-hoc numbers, but seem to be sufficient for a Gigabit link.

Use separate condvar for PDU pool and add counter to help debugging.

Revert setting PDU disposition to UNUSED before freeing. free_pdu
uses this as a flag to detect already returned PDUs.

Add reference counter for open commands to defer unmapping a session
that would lead to crashes in scsipi.

Move session cleanup to cleanup thread.

Use get_sernum to retrieve current serial number where possible and
make it check for immediate commands itself.

Adjust debug output.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Jun 5 15:04:31 2016 UTC (8 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
use correct comparison of serial numbers

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Jun 5 13:45:56 2016 UTC (8 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -1 lines
More debug output. Dump pending CCBs when cleaning up.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jun 5 08:30:13 2016 UTC (8 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -4 lines
appease compiler

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jun 5 04:48:17 2016 UTC (8 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +35 -9 lines
When stopping a callout, wait until the cleanup thread has processed them.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Jun 3 06:55:16 2016 UTC (8 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -6 lines
use sernum handling function

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Jun 1 05:13:07 2016 UTC (8 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +41 -3 lines
refactor callouts
remove timed out ccbs and connections from cleanup queue when stopping timeout.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Jun 1 04:07:03 2016 UTC (8 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -2 lines
close session when last connection is removed.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun May 29 13:51:16 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +302 -121 lines
Several improvements to the ISCSI driver.

- Enable debug messages but set log level to be quiet. Provide a
  system (hw.iscsi.debug) to set the log level at run time.
- Replace old tsleep/wakeup synchronization with mutexes and condvars.
- Defer actions from callouts (basically timeouts) to the cleanup thread.
- Protect lists and unique ids with mutexes. protect connection usecount
  by using atomic operations.
- Assert kernel lock when calling into scsipi and network code.
- Use this to make send/receive/cleanup threads MPSAFE.

- Fix handling of out-of-CCB/out-of-PDU conditions against the scsipi layer.
- Bump number of PDUs to 128 to avoid virtually all out-of-PDU conditions

- Make use of softc structure for attach/detach operations.
- Track open file handles to prevent detach when busy.

- Move some global variables to make them static.

- Fix 'Overlapping Commands Attempted' error by marking commands as
  simply ordered (ATTR_SIMPLE) like FreeBSD.

Revision 1.6.14.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:58 2015 UTC (9 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.6.14.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.14.1: +2 -2 lines
Sync with HEAD

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Sep 19 18:32:42 2015 UTC (9 years, 7 months ago) by dholland
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Use value *before* freeing it. Found by brainy, reported by maxv.

Revision 1.6.14.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:08 2015 UTC (9 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +32 -80 lines
Sync with HEAD

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat May 30 20:09:47 2015 UTC (9 years, 11 months ago) by joerg
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -2 lines
Create a per-device state for iscsi(4), effectively making it a cloning
device.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat May 30 18:09:31 2015 UTC (9 years, 11 months ago) by joerg
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Inline SET_CCB_TIMEOUT and SET_CONN_TIMEOUT

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat May 30 18:00:09 2015 UTC (9 years, 11 months ago) by joerg
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -15 lines
Remove ISCSI_PERFTEST.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat May 30 16:12:34 2015 UTC (9 years, 11 months ago) by joerg
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -31 lines
Remove ISCSI_TEST_MODE and corresponding dev/iscsi_test.h header.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri May 15 16:24:30 2015 UTC (9 years, 11 months ago) by joerg
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +30 -35 lines
Remove conditionals for NetBSD before 4.0.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun May 3 15:07:12 2015 UTC (9 years, 11 months ago) by joerg
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Make sure callout is halted, not just stopped, before freeing memory.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:16 2013 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +97 -51 lines
resync with head

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:07 2013 UTC (12 years, 3 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.2: +97 -51 lines
sync with head

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Dec 29 11:05:29 2012 UTC (12 years, 4 months ago) by mlelstv
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, khorben-n900, agc-symver-base, agc-symver
Branch point for: nick-nhusb
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +97 -51 lines
- defer session cleanup to not force detachments
- use more and explicit locking
- improve connection recovery
- use larger timeouts
- handle ccb buffer underflow correctly
- simplify throttling code

Sessions can now temporarily exist without a valid
connection, you also need to update iscsid(8).

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:17 2012 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +65 -39 lines
sync with head

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Aug 12 13:26:18 2012 UTC (12 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +25 -25 lines
Don't use common variables, also prefix global variables to avoid
namespace pollution.

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 3 20:48:40 2012 UTC (12 years, 9 months ago) by jdc
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +41 -15 lines
Pull up revisions:
  src/sys/dev/iscsi/iscsi_globals.h revisions 1.3,1.4
  src/sys/dev/iscsi/iscsi_main.c revisions 1.4,1.5
  src/sys/dev/iscsi/iscsi_text.c revisions 1.4,1.5
  src/sys/dev/iscsi/iscsi_ioctl.c revisions 1.3,1.4
  src/sys/dev/iscsi/iscsi_send.c revisions 1.3,1.4,1.5
  src/sys/dev/iscsi/iscsi_utils.c revisions 1.2,1.3,1.4
  src/sbin/iscsid/iscsid_discover.c revision 1.4
  src/sys/dev/iscsi/iscsi_rcv.c revision 1.3
  src/sbin/iscsictl/iscsic_driverif.c revisions 1.5,1.6
(requested by martin in ticket #357, with updates from mhitch and mlelstv).

avoid namespace pollution when debugging
don't panic when printing data for a dead (NULL) connection

Close file descriptor passed into the kernel on success.
Fix locking of file handle. More cleanup on error paths.
Keep track of CCBs, so they cannot be used after a session ends.
Handle CCB timeouts even when the connection is terminated.
Compute firstdata, firstimmed correctly.

assemble_login_parameters() has a strange error reporting convention:
errors are positive numbers, so <= 0 is good, not >= ...
This makes CHAP authenticated iscsi logins work.

use first successful connection to a ISNS server

Add more debugging, fix filehandle usage, login negotiation and session
shutdown.
Add #ifdef'd code to send negotiation parameters in hex instead of base64,
so it works against older Linux targets.

report luns returns a 32bit list length.

Make digests work also on big endian machines.

it's really 32bit

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jun 24 17:01:35 2012 UTC (12 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +13 -11 lines
Add more debugging, fix filehandle usage, login negotiation and session
shutdown.
Add #ifdef'd code to send negotiation parameters in hex instead of base64,
so it works against older Linux targets.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jun 9 06:19:58 2012 UTC (12 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +35 -11 lines
Close file descriptor passed into the kernel on success.
Fix locking of file handle. More cleanup on error paths.
Keep track of CCBs, so they cannot be used after a session ends.
Handle CCB timeouts even when the connection is terminated.
Compute firstdata, firstimmed correctly.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:40 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
sync with head

Revision 1.1.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:30 2012 UTC (13 years, 2 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +2 -2 lines
merge to -current.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Jan 27 19:48:39 2012 UTC (13 years, 3 months ago) by para
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: netbsd-6
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
extending vmem(9) to be able to allocated resources for it's own needs.
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)

releng@ acknowledged

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Oct 23 21:15:02 2011 UTC (13 years, 6 months ago) by agc
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Start to move the in-kernel iSCSI initiator, kindly contributed to the
NetBSD Foundation by Wasabi Systems, from

        othersrc/external/bsd/iscsi/sys/dev/iscsi

to

        src/sys/dev/iscsi

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>