Commit Graph

6318 Commits

Author SHA1 Message Date
Bart Van Assche
0ac23deee2 scst: Introduce tgt_dev.tgtt
A later patch will free tgt_devs after an RCU grace period. Make it
safe to access the target template pointer after an RCU grace period.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-24 01:09:25 +00:00
Bart Van Assche
89b1c2fb99 scst: Remove a superfluous synchronize_rcu() call
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8473 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-23 21:06:45 +00:00
Bart Van Assche
1a15ee560c scst: Fix __scst_init_cmd()
Fixes: 5b0f9ef0b9 ("scst: Increase tgt_dev_cmd_count by one") / r8465.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8472 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-23 21:06:03 +00:00
Bart Van Assche
98cbaa121f scst: Revert r8466
Since r8466 is causing trouble, revert it temporarily.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-23 19:18:38 +00:00
Bart Van Assche
8e2391d3d3 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8467 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-21 15:47:16 +00:00
Bart Van Assche
cf2167c2b9 scst: Free removed LUNs asynchronously
Instead of waiting until all commands associated with a LUN have finished,
do not wait and free LUN data structures once all associated commands have
finished. This commit should fix https://sourceforge.net/p/scst/tickets/23/.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8466 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-21 01:52:03 +00:00
Bart Van Assche
5b0f9ef0b9 scst: Increase tgt_dev_cmd_count by one
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8465 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-21 01:49:38 +00:00
Bart Van Assche
c9b43e0245 scst: Fix an error path in scst_tgt_dev_setup_threads()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8464 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-21 01:49:03 +00:00
Bart Van Assche
51599b3c44 scst: Move a synchronize_rcu() call from scst_free_tgt_dev() to its callers
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8463 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-21 01:48:21 +00:00
Bart Van Assche
81729121b0 scst: Verify a locking assumption at runtime
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-21 01:47:49 +00:00
Bart Van Assche
0979cd90e4 scst: Make a comment more clear
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8461 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-21 01:47:11 +00:00
Bart Van Assche
d15fec750f qla2x00t-32gbit/qla_iocb.c: Minimize diffs with the upstream code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8460 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:17:22 +00:00
Bart Van Assche
e43954090e qla2x00t-32gbit/qla_bsg.c: Minimize diffs with the upstream code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8459 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:15:23 +00:00
Bart Van Assche
d73d4daf6f qla2x00t-32gbit/qla_target.c: Minimize diffs with the upstream code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8458 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:14:29 +00:00
Bart Van Assche
b5f91e2e8c qla2x00t-32gbit/qla_nvme.c: Minimize diffs with the upstream code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8457 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:10:10 +00:00
Bart Van Assche
3584b24708 qla2x00t-32gbit/qla_init.c: Minimize diffs with the upstream code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:09:33 +00:00
Bart Van Assche
1e4c96bf76 qla2x00t-32gbit: Move IO flush to the front of NVME rport unregistration
See also upstream commit baf23eddbf2a ("scsi: qla2xxx: move IO flush to
the front of NVME rport unregistration").


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8455 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:08:33 +00:00
Bart Van Assche
f46ed82838 qla2x00t-32gbit, NVMe: Fix NVME cmd and LS cmd timeout race condition
See also upstream commit 4c2a2d0178d5 ("scsi: qla2xxx: Fix NVME cmd and LS
cmd timeout race condition").



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8454 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:07:34 +00:00
Bart Van Assche
87724bd6b4 qla2x00t-32gbit, NVMe: On session delete, return nvme cmd
See also upstream commit 2eb9238affa7 ("scsi: qla2xxx: on session delete,
return nvme cmd").



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8453 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:05:09 +00:00
Bart Van Assche
da3b50b65e qla2x00t-32gbit, NVMe: Fix kernel crash after disconnecting NVMe devices
See also upstream commit 6a81533d616f ("scsi: qla2xxx: Fix kernel crash
after disconnecting NVMe devices").



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8452 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:03:57 +00:00
Bart Van Assche
9574432b73 qla2x00t-32gbit/qla_os.c: Fix hardlockup in abort command during driver remove
See also upstream commit 5589b08e5be4 ("scsi: qla2xxx: Fix hardlockup in
abort command during driver remove") # v5.2-rc6.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8451 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:02:43 +00:00
Bart Van Assche
8166668189 qla2x00t-32gbit/qla_target.c: Replace GPLv2 boilerplate/reference with SPDX
See also upstream commit 8e8e69d67e5f ("treewide: Replace GPLv2
boilerplate/reference with SPDX - rule 285") # v5.2-rc4.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8450 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:01:59 +00:00
Bart Van Assche
39be52dd39 qla2x00t-32gbit/qla_target.h: Replace GPLv2 boilerplate/reference with SPDX
See also upstream commit c942fddf8793 ("treewide: Replace GPLv2 boilerplate/
reference with SPDX - rule 157") # v5.2-rc3.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8449 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:01:12 +00:00
Bart Van Assche
796b64022a qla2x00t-32gbit/Kconfig: Add SPDX license identifier
See also upstream commit ec8f24b7faaf ("treewide: Add SPDX license
identifier - Makefile/Kconfig").


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8448 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-15 03:00:31 +00:00
Bart Van Assche
780b839247 qla2x00t-32gbit: Minimize the diffs with the upstream code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-14 21:29:38 +00:00
Bart Van Assche
8d3ef1aed2 qla2x00t-32gbit: Minimize diffs with the upstream qla2xxx driver
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8446 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-14 21:27:59 +00:00
Bart Van Assche
ba6c7e1455 qla2x00t-32gbit: Revert r8141
A better solution will be checked in later.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-14 21:16:55 +00:00
Bart Van Assche
53b6d6a812 qla2x00t-32gbit: Revert r8351
r8351 was wrong so revert it.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8444 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-14 21:16:05 +00:00
Bart Van Assche
028e938910 qla2x00t-32gbit: Revert r8417 and r8418
These changes were wrong so revert these.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8443 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-14 21:15:03 +00:00
Bart Van Assche
d1f2f4f3cf nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-14 15:24:37 +00:00
Bart Van Assche
5ac4655b75 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8441 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-10 15:27:10 +00:00
Bart Van Assche
88feab9c1d nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8440 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-09 04:24:09 +00:00
Bart Van Assche
646d69072f nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8439 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-07-03 15:01:00 +00:00
Bart Van Assche
67bed6588b nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8438 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-27 02:14:43 +00:00
Bart Van Assche
73b309e8ae nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8437 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-25 13:50:53 +00:00
Bart Van Assche
b8132cfbea nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8436 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-24 15:07:01 +00:00
Bart Van Assche
a3650faf40 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8435 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-20 17:47:25 +00:00
Bart Van Assche
5a9ff48fe9 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8434 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-20 17:11:50 +00:00
Bart Van Assche
70e055ea0d scst: Fix a Linux kernel v4.10 warning about redefining FC_PORT_ROLE_NVME_INITIATOR
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8433 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-20 17:09:32 +00:00
Bart Van Assche
810e718997 scst_vdisk: Make flushing work with the rbd driver
Some but not all block drivers support REQ_OP_FLUSH. Hence use
REQ_OP_WRITE | REQ_PREFLUSH instead. See also
https://github.com/bvanassche/scst/issues/16.

Reported-by: Tomohiro Kusumi
Fixes: d41307c162 ("scst: Port to Linux kernel v4.8") # trunk r6991.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8430 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-18 03:00:09 +00:00
Bart Van Assche
3749561e2f scst_vdisk: Invert an if-condition
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8429 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-18 02:59:25 +00:00
Bart Van Assche
0b1dd369ba nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8428 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-18 01:59:24 +00:00
Bart Van Assche
48a6217fad qla2x00t-32gbit: Improve coding style conformance
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8427 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-17 23:24:29 +00:00
Bart Van Assche
86fad676e9 scst: Fix build against Linux kernel v5.2
Reported-by: Sebastian Herbszt <herbszt@gmx.de>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8426 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-16 21:07:17 +00:00
Bart Van Assche
126cc447db scst: Introduce scst_reset_scsi_target() and scst_reset_scsi_device()
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8425 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-16 20:53:37 +00:00
Bart Van Assche
48eceda39b nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8424 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-15 14:11:27 +00:00
Bart Van Assche
cd5c6e2734 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8423 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-14 03:06:44 +00:00
Bart Van Assche
5cef085128 scst: Add support for the SCSI SET CAPACITY command
This is a command for tape devices. See also the ANSI T10 SSC document.

Signed-off-by: Rob Turk <robtu@rtist.nl>
[ bvanassche: added patch description ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8422 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-14 03:04:26 +00:00
Bart Van Assche
92bbc3a4ef nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8421 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-09 15:00:49 +00:00
Bart Van Assche
8cedd07cf8 qla2x00t-32gbit: Improve coding style conformance
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8420 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-06-08 03:27:51 +00:00