Set bufflen for not expected transfer len case to max to allow, e.g., to get immediate iSCSI data. Otherwise, the iSCSI target will get a too low buffer error and have to close connection.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@1550 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Patch from Gilad H <gilad.public2@gmail.com> with improvements fixing the following scenario:
1. Commands start going to the init_cmd_list probably because SCST was suspended
2. A command is now waiting in the init_cmd_list, it was not yet completely initialized (more impotently cmd->dev == NULL)
3. A clear task set for the same lun arrives from a different initiator
4. The command is marked as aborted from other initiator and released from the init list.
5. The command gets to the PRE_XMIT_RESPONSE state, since it was aborted the scst_xmit_process_aborted_cmd is called.
6. At this stage since the command is marked as aborted by other initiator the scst checks for the device TAS flag (cmd->dev->tas) however cmd->dev is NULL and we crash on Null pointer de-referencing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@1467 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Patch from Smadar Gonen <smadar.gn@gmail.com>:
The following fixes were made:
- Use monotonic clock as time source instead of a real-time clock so change of system time will not affect calculation.
- Init scst_time to 0 + minor display fix.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@1008 d57e44dd-8a1f-0410-8b47-8ef2f437770f
- Fixes a race, which can lead to a hang, if a user space handler with >1 devices gets killed under load
- Fix double free
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@978 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Patch from Smadar Gonen <smadar.gn@gmail.com>
Implements some useful scst_user statistic in /proc
Minor fixes and cleanups
Bart Van Assche <bart.vanassche@gmail.com>:
Whitespace-only changes: fixed two recently introduced checkpatch errors (code should be indented by tabs / trailing whitespace).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Removed trailing whitespace.
and r952:
On ppc64, gcc 4.4 spews lots of..
drivers/scsi/qla2xxx/qla_def.h:1485:7: warning: "__LITTLE_ENDIAN" is not defined
Signed-off-by: Dave Jones <davej@redhat.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@960 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Fixes issues cased by recent change of cdb_len to unsigned. Reported by Krzysztof Błaszkowski <kb@sysmikro.com.pl>.
Also it adds INIT ELEMENT STATUS WRANGE to the list of known commands.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@865 d57e44dd-8a1f-0410-8b47-8ef2f437770f
- Change in scstadmin/ChangeLog 'since' to 'for' in ChangeLog so the version isn't misleading
- Fixes incorrect initiators.allow matching. Reported and tested by Dimitri Puzin <max@psycast.de>.
- Fixes handling of tab character during parsing of initiators.allow and initiators.deny files
- IET part of the version updated
- TAGS updated
- Comments in scst_targ.c about long ago gone scst_unregister_session_ex() fixed
+
Version updated to 1.0.1.1
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@813 d57e44dd-8a1f-0410-8b47-8ef2f437770f
- Fixes BUG: scheduling while atomic
- Removes nested allocation, because MAX_LOCKDEP_SUBCLASSES isn't sufficiently high in many cases
- Size for mempools for UAs and sense buffers increased
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@797 d57e44dd-8a1f-0410-8b47-8ef2f437770f
We can't mark sess as shutting down in close_conn(), because at that time it might have pending commands. Otherwise, in case of reinstatemen
t it might lead to data corruption, because commands in being reinstated session can be executed after commands in the new session.
Found out by Hari Subramanian <hari@vmware.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/1.0.1.x@793 d57e44dd-8a1f-0410-8b47-8ef2f437770f