Edward Tomasz Napierala
605a34b065
All the iSCSI sysctls are also tunables; advertise that.
...
Sponsored by: The FreeBSD Foundation
2014-04-04 08:48:55 +00:00
Edward Tomasz Napierala
01a111f447
Use atomic ops instead of mutexes where appropriate.
...
Submitted by: mav@
Sponsored by: The FreeBSD Foundation
2014-04-01 21:54:20 +00:00
Edward Tomasz Napierala
ecba49ddfc
Instead of "icltx" and "iclrx", use thread names with prefix from upper
...
layer, so that one can see which side of the stack the threads are for.
Sponsored by: The FreeBSD Foundation
2014-04-01 21:47:22 +00:00
Edward Tomasz Napierala
6ed8f5d236
Get rid of ICL lock; use upper-layer (initiator or target) lock instead.
...
This avoids extra locking in icl_pdu_queue(); the upper layer needs to call
it while holding its own lock anyway, to avoid sending PDUs out of order.
Sponsored by: The FreeBSD Foundation
2014-04-01 21:40:46 +00:00
Edward Tomasz Napierala
6d9d321647
Rework cfiscsi_datamove_in() to obey expected data transfer length
...
received from the initiator.
Sponsored by: The FreeBSD Foundation
2014-03-27 10:15:35 +00:00
Edward Tomasz Napierala
ea86ccce9b
Target Transfer Tag is opaque; no need to htonl(3) it.
...
Sponsored by: The FreeBSD Foundation
2014-03-25 19:28:40 +00:00
Edward Tomasz Napierala
b1277ad1f7
Use a less unusual syntax in debug printfs.
...
Sponsored by: The FreeBSD Foundation
2014-03-25 18:30:57 +00:00
Robert Watson
4a14441044
Update kernel inclusions of capability.h to use capsicum.h instead; some
...
further refinement is required as some device drivers intended to be
portable over FreeBSD versions rely on __FreeBSD_version to decide whether
to include capability.h.
MFC after: 3 weeks
2014-03-16 10:55:57 +00:00
Edward Tomasz Napierala
2cb15089bb
Make reset handling in iSCSI target RFC-compliant. This fixes some rare
...
hangs with Open-iSCSI (Linux).
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-03-06 10:45:53 +00:00
Edward Tomasz Napierala
c48f182bb1
Remove no longer useful debugging output and a stale comment.
...
Approved by: re (gjb)
Sponsored by: FreeBSD Foundation
2013-10-09 17:34:45 +00:00
Edward Tomasz Napierala
02147e9cd0
Make the error handling more consistant. Shouldn't make any functional
...
difference.
Approved by: re (gjb)
Sponsored by: FreeBSD Foundation
2013-10-09 17:06:03 +00:00
Edward Tomasz Napierala
8ba0396077
Tidy up, cache return value of a function, and add an assertion;
...
shouldn't make any functional difference.
Approved by: re (gjb)
Sponsored by: FreeBSD Foundation
2013-10-09 16:55:52 +00:00
Edward Tomasz Napierala
1008ac5eb7
Fix NOP-In/NOP-Out payload handling. Previous way didn't work at all; fortunately
...
nothing seems to actually use this feature, but it's required by standard.
Approved by: re (glebius)
Sponsored by: FreeBSD Foundation
2013-10-09 12:03:04 +00:00
Edward Tomasz Napierala
a9c80a534a
Properly fix out of memory handling in the iSCSI target.
...
Approved by: re (glebius)
Sponsored by: FreeBSD Foundation
2013-10-08 19:18:02 +00:00
Edward Tomasz Napierala
0f30c5d3c0
Split cfiscsi_datamove() in two; no functional changes.
...
Approved by: re (glebius)
Sponsored by: FreeBSD Foundation
2013-10-05 16:22:33 +00:00
Edward Tomasz Napierala
c28c09c1f0
Don't leak memory when removing an unconnected session, and remove useless
...
UMA_ZONE_NOFREE that caused another leak when unloading the module.
Approved by: re (glebius)
Sponsored by: FreeBSD Foundation
2013-10-04 19:31:41 +00:00
Edward Tomasz Napierala
9606f568fe
Properly ignore PDUs with CmdSN outside of allowed range.
...
Approved by: re (glebius)
Sponsored by: FreeBSD Foundation
2013-09-24 13:46:13 +00:00
Edward Tomasz Napierala
69aa56bef2
Fix a few instances of M_WAITOK in threads marked as prohibited from sleep,
...
missed in r255824.
Approved by: re (kib)
Sponsored by: FreeBSD Foundation
2013-09-24 09:33:31 +00:00
Edward Tomasz Napierala
46aaea8995
Don't use M_WAITOK when running from context where sleeping is prohibited,
...
such as callout or a geom thread.
Approved by: re (marius)
Sponsored by: FreeBSD Foundation
2013-09-23 19:54:44 +00:00
Edward Tomasz Napierala
009ea47eb2
Bring in the new iSCSI target and initiator.
...
Reviewed by: ken (parts)
Approved by: re (delphij)
Sponsored by: FreeBSD Foundation
2013-09-14 15:29:06 +00:00