CVS log for src/sys/dev/iscsi/iscsi_main.c
Up to [cvs.NetBSD.org] / src / sys / dev / iscsi
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.41.4.1: download - view: text, markup, annotated - select for diffs
Fri Nov 1 15:06:22 2024 UTC (4 weeks, 5 days ago) by martin
Branches: netbsd-10
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +2 -2
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.42: download - view: text, markup, annotated - select for diffs
Thu Dec 28 15:58:24 2023 UTC (11 months, 1 week ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2
lines
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).
Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Sep 13 13:09:16 2022 UTC (2 years, 2 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-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -2
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.40: download - view: text, markup, annotated - select for diffs
Thu Apr 14 16:50:26 2022 UTC (2 years, 7 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -2
lines
Split some common stuff into scsi_subr module. This enables loading
of the iscsi module whether or not there are any scsi things built
into the kernel.
Addresses the iscsi portion of kern/56772
Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Mar 31 19:30:16 2022 UTC (2 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +15 -12
lines
For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence. This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:
devsw_attach()
config_init_component() or config_cf*_attach()
...
config_fini_component() or config_cf*_detach()
devsw_detach()
While here, add a few missing calls to some of the detach
routines.
Testing of these changes has been limited to:
1. compile without build break
2. no related test failures from atf
3. modload/modunload work as well as
before.
No functional device testing done, since I don't have any
of these devices. Let me know of any damage I might cause
here!
XXX Some of the modules affected by this commit are already
XXX broken; see kern/56772. This commit does not break
any additional modules (as far as I know).
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Feb 13 19:03:25 2022 UTC (2 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -2
lines
iscsi(4): Fix config_found usage -- needs kernel lock.
Candidate fix for PR kern/56709.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:12 2021 UTC (3 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2
lines
Merge thorpej-cfargs2.
Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 23:24:58 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +2 -2
lines
Adapt to CFARGS().
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:28 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +12 -8
lines
Sync w/ HEAD.
Revision 1.35.6.1: download - view: text, markup, annotated - select for diffs
Sun Jun 6 20:30:52 2021 UTC (3 years, 5 months ago) by cjep
Branches: cjep_sun2x
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +12 -8
lines
sync with head
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Jun 6 10:40:14 2021 UTC (3 years, 6 months ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
cjep_sun2x-base1
Branch point for: thorpej-cfargs2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +12 -8
lines
Provide missing file ops. Before a simple read() would panic the kernel.
No longer fail close().
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:56 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: cjep_sun2x-base,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf,
cjep_sun2x
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2
lines
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.
Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)
Remove unnecessary or redundant interface attributes where they're not
needed.
There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:45 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +10 -3
lines
Sync with HEAD.
Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:09:13 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +2 -2
lines
Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Mar 7 12:30:03 2021 UTC (3 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +10 -3
lines
Stop advertising more openings after limit is reached.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed May 13 21:59:45 2020 UTC (4 years, 6 months ago) by jdolecek
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2
lines
make the iscsi attached message aprint_verbose(), no need to show normally
Revision 1.27.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:23 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.27.4.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.4.1: +7 -12
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Oct 1 18:00:08 2019 UTC (5 years, 2 months ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
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.31: preferred, colored
Changes since revision 1.31: +2 -7
lines
in many device attach paths, allocate memory with KM_SLEEP instead of KM_NOSLEEP
and remove code to handle failures that can no longer happen.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Aug 7 00:38:02 2019 UTC (5 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +1 -6
lines
Many years ago someone created a new __link_set_sysctl_funcs to hold
the list of routines that need to be called for setting up sysctl
variables. This worked great for all code included in the kernel
itself, but didn't deal with modules that want to create their own
sysctl data. So, we ended up with a lot of #ifdef _MODULE blocks
so modules could explicitly call their setup functions when loaded
as non-built-in modules.
So today, we complete the task that was started so many years ago.
When modules are loaded, after we've called xxx_modcmd(INIT...) we
check if the module contains its own __link_set_sysctl_funcs, and
if so we call the functions listed. We add a struct sysctllog member
to the struct module so we can call sysctl_teardown() when the module
gets unloaded. (The sequence of events ensures that the sysctl stuff
doesn't get created until the rest of the module's init code does any
required memory allocation.)
So, no more need to explicitly call the sysctl setup routines when
built as a loadable module.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Jul 13 17:06:00 2019 UTC (5 years, 4 months ago) by mlelstv
Branches: MAIN
CVS tags: 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
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +6 -1
lines
register with pmf to allow suspend.
Revision 1.27.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:12 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +9 -2
lines
Sync with HEAD
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Apr 21 11:26:46 2019 UTC (5 years, 7 months ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +9 -2
lines
Replace build option to enable hex encoded bignum parameters with a sysctl.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Apr 11 11:40:58 2019 UTC (5 years, 7 months ago) by kamil
Branches: MAIN
CVS tags: isaki-audio2-base,
isaki-audio2
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +1 -1
lines
Fix CVS Id
NFCI
Revision 1.24.8.1: download - view: text, markup, annotated - select for diffs
Thu Dec 21 19:17:43 2017 UTC (6 years, 11 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.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +3 -2
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.27: download - view: text, markup, annotated - select for diffs
Sun Dec 3 19:07:10 2017 UTC (7 years ago) by christos
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
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,
pgoyette-compat,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +44 -43
lines
- add a prefix to struct members (but not the ioctl ones because they affect
the API)
- use consistent variable names.
Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:05 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.6.2.2: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.2: +227 -93
lines
update from HEAD
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Dec 3 07:24:47 2017 UTC (7 years ago) by mlelstv
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -2
lines
unreference session only for responses to SCSI commands.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Nov 30 20:25:55 2017 UTC (7 years ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -0
lines
add fo_name so we can identify the fileops in a simple way.
Revision 1.24.6.1: download - view: text, markup, annotated - select for diffs
Wed May 17 01:44:17 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +6 -2
lines
At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.
Adapt callers to expect the reference to exist, and to ensure that the
reference is released.
Revision 1.10.2.5: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:28 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10.2.4: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.4: +1 -2
lines
Sync with HEAD
Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:32 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +1 -2
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Dec 25 06:55:28 2016 UTC (7 years, 11 months ago) by mlelstv
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: prg-localcount2,
netbsd-8
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -2
lines
Lock correctly around CV calls.
Fix handling of session termination.
Enable MPSAFE processing for scsipi.
Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:03 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10.2.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.3: +181 -58
lines
Sync with HEAD
Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Jun 15 04:30:30 2016 UTC (8 years, 5 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.22: preferred, colored
Changes since revision 1.22: +66 -12
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.22: download - view: text, markup, annotated - select for diffs
Sun Jun 5 05:29:01 2016 UTC (8 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2
lines
Keep 1 CCB free for private use. This avoids frequent recovery in scsipi when
resources appear to be exhausted.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Jun 5 04:53:22 2016 UTC (8 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2
lines
Tear down sysctls only after detaching children. This lets you enable
debugging while detaching hangs.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Jun 5 04:50:23 2016 UTC (8 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -1
lines
Whitespace
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jun 5 04:36:05 2016 UTC (8 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -1
lines
More debugging output, changed debug levels for some.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun May 29 13:51:16 2016 UTC (8 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +117 -48
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.10.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:58 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.2: +1 -2
lines
Sync with HEAD
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Aug 20 14:40:18 2015 UTC (9 years, 3 months ago) by christos
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.16: preferred, colored
Changes since revision 1.16: +1 -2
lines
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.
Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:08 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +42 -32
lines
Sync with HEAD
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat May 30 20:09:47 2015 UTC (9 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +26 -6
lines
Create a per-device state for iscsi(4), effectively making it a cloning
device.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat May 30 18:00:09 2015 UTC (9 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +0 -4
lines
Remove ISCSI_PERFTEST.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri May 15 18:28:36 2015 UTC (9 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +15 -21
lines
Don't pre-compute string sizes in a relatively cold function.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri May 15 16:24:30 2015 UTC (9 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
Remove conditionals for NetBSD before 4.0.
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:09 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1
lines
Sync with HEAD
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Feb 21 17:14:37 2015 UTC (9 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +9 -3
lines
Revert and add comment that this dance is for the sake of builtin module
registration.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Feb 21 12:32:23 2015 UTC (9 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -8
lines
Simplify.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Nov 24 21:49:17 2014 UTC (10 years ago) by joerg
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -1
lines
iscsi_attrs is not used when iscsi(4) is compiled into the kernel.
Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:39 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.1: +12 -3
lines
Rebase to HEAD as of a few days ago.
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:52 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +1 -0
lines
Rebase.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:37 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-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
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -0
lines
Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:23 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
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: +11 -3
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:38 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +11 -3
lines
sync with head
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:28 2014 UTC (10 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +11 -3
lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.
I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:16 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +17 -7
lines
resync with head
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:07 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +17 -7
lines
sync with head
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Dec 29 11:05:30 2012 UTC (11 years, 11 months ago) by mlelstv
Branches: MAIN
CVS tags: yamt-pagecache-base8,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +17 -7
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.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:17 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +36 -28
lines
sync with head
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Aug 12 13:26:18 2012 UTC (12 years, 3 months ago) by mlelstv
Branches: MAIN
CVS tags: yamt-pagecache-base7,
yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +22 -21
lines
Don't use common variables, also prefix global variables to avoid
namespace pollution.
Revision 1.1.8.2: download - view: text, markup, annotated - select for diffs
Tue Jul 3 20:48:40 2012 UTC (12 years, 5 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.1.8.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.8.1: +2 -3
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.5: download - view: text, markup, annotated - select for diffs
Sat Jun 9 06:19:58 2012 UTC (12 years, 5 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +0 -1
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.4: download - view: text, markup, annotated - select for diffs
Sat Jun 2 16:52:11 2012 UTC (12 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2
lines
avoid namespace pollution when debugging
don't panic when printing data for a dead (NULL) connection
Revision 1.1.6.1: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:17 2012 UTC (12 years, 6 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: +12 -4
lines
sync to latest -current.
Revision 1.1.8.1: download - view: text, markup, annotated - select for diffs
Wed May 30 08:06:26 2012 UTC (12 years, 6 months ago) by sborrill
Branches: netbsd-6
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +12 -4
lines
Pull up the following revisions(s) (requested by riz in ticket #291):
etc/MAKEDEV.tmpl: revision 1.155
sbin/iscsictl/iscsictl.8: revision 1.2-1.4
sbin/iscsid/iscsid_driverif.c: revision 1.4-1.5
sbin/iscsid/iscsid_lists.c: revision 1.4-1.7
sbin/iscsid/iscsid_targets.c: revision 1.4
sbin/iscsid/iscsid_globals.h: revision 1.5-1.7
sbin/iscsid/iscsid_main.c: revision 1.4-1.7
sbin/iscsid/Makefile: revision 1.2-1.4
sbin/iscsid/iscsid.8: revision 1.3-1.8
sbin/iscsid/iscsid.h: revision 1.3
sys/dev/iscsi/iscsi_main.c: revision 1.2-1.3
Fix bugs in iscsid target list handling, and improve documentation
somewhat for the in-kernel iSCSI initiator.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon May 28 04:18:12 2012 UTC (12 years, 6 months ago) by riz
Branches: MAIN
CVS tags: jmcneill-usbmp-base10
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +8 -4
lines
Expose some of the module framework when _MODULE is not defined, so
iscsi becomes a "built in" module in that case.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon May 28 03:43:18 2012 UTC (12 years, 6 months ago) by riz
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -0
lines
Don't allow iscsi to autounload. The default unload timeout is short,
and too much state is lost.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Oct 23 21:15:02 2011 UTC (13 years, 1 month ago) by agc
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
jmcneill-usbmp-pre-base2,
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-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
netbsd-6,
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
CVSweb <webmaster@jp.NetBSD.org>