mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 22:26:23 +00:00
5c963d25e1c58650c294027c9a3e7bd62d27899d
svn+ssh://vlnb@svn.code.sf.net/p/scst/svn/trunk ........ r5984 | vlnb | 2015-01-21 21:03:17 -0800 (Wed, 21 Jan 2015) | 9 lines [PATCH] scst_local: Fix bidirectional command support scsi_setup_cmnd() sets sc_data_direction to DMA_TO_DEVICE for bidirectional commands. Hence test SCpnt->request->next_rq instead of sc_data_direction to figure out whether or not a command is bidirectional. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> ........ r5988 | vlnb | 2015-01-21 21:13:59 -0800 (Wed, 21 Jan 2015) | 27 lines scst_vdisk: Fix zero-copy read for tmpfs For some filesystems, e.g. tmpfs, address_space.readpage is NULL. Disable zero-copy reading for such filesystems. See also shmem_aops in mm/shmem.c. See also inode_init_always() and empty_aops in fs/inode.c. This patch avoids that the following call trace is triggered: BUG: unable to handle kernel NULL pointer dereference at (null) Call Trace: [<ffffffffa0547d66>] prepare_read+0x106/0x1d0 [scst_vdisk] [<ffffffffa0547f20>] fileio_alloc_data_buf+0xf0/0x330 [scst_vdisk] [<ffffffffa046fc9b>] scst_prepare_space+0x9b/0x6e0 [scst] [<ffffffffa047d4d5>] scst_process_active_cmd+0x545/0x840 [scst] [<ffffffffa047dad2>] scst_cmd_init_done+0x302/0x5d0 [scst] [<ffffffffa0563ab2>] scst_cmd_init_stage1_done.constprop.37+0x12/0x20 [iscsi_scst] [<ffffffffa056a9ea>] scsi_cmnd_start+0x25a/0x550 [iscsi_scst] [<ffffffffa056b4a8>] cmnd_rx_start+0x148/0x1a0 [iscsi_scst] [<ffffffffa056e4f8>] process_read_io+0x3b8/0x800 [iscsi_scst] [<ffffffffa056ea07>] scst_do_job_rd+0xc7/0x220 [iscsi_scst] [<ffffffffa056efed>] istrd+0x16d/0x2e0 [iscsi_scst] [<ffffffff81079efd>] kthread+0xed/0x110 [<ffffffff817227fc>] ret_from_fork+0x7c/0xb0 Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> ........ r5989 | vlnb | 2015-01-23 21:37:57 -0800 (Fri, 23 Jan 2015) | 5 lines scst_local: Rework data direction detection code Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> ........ git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6112 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This is the SCST development repository. It contains not a single project SCST as one can think, but a number of them, which are divided as the following: 1. SCST core in scst/ subdirectory 2. Administration utility for SCST core scstadmin in scstadmin/ 3. Target drivers in own subdirectories qla2x00t/, iscsi-scst/, etc. 4. User space programs in usr/ subdirectory, like fileio_tgt. 5. Some various docs in doc/ subdirectory. Those subprojects are in most cases independent from each other, although some of them depend from the SCST core. They put in the single repository only to simplify their development, they are released independently. Thus, use "make all" only if you really need to build everything. Otherwise build only what you need, like for iSCSI-SCST: make scst scst_install iscsi iscsi_install For more information about each subproject see their README files. Vladislav Bolkhovitin <vst@vlnb.net>, http://scst.sourceforge.net
Languages
C
90.1%
Perl
4.2%
Shell
1.8%
HTML
1.7%
Makefile
1.2%
Other
0.9%