From ae0ee7f76c7ec45813f627388b0e0e908586576e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 14 Sep 2015 20:34:39 +0000 Subject: [PATCH 1/3] nightly build: Update kernel versions git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6501 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- nightly/conf/nightly.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nightly/conf/nightly.conf b/nightly/conf/nightly.conf index 43677f336..8b885e0cd 100644 --- a/nightly/conf/nightly.conf +++ b/nightly/conf/nightly.conf @@ -3,18 +3,18 @@ ABT_DETAILS="x86_64" ABT_JOBS=5 ABT_KERNELS=" \ -4.1.6 \ +4.1.7 \ 4.0.9-nc \ 3.19.7-nc \ 3.18.19-nc \ 3.17.8-nc \ 3.16.7-nc \ 3.15.10-nc \ -3.14.51-nc \ +3.14.52-nc \ 3.13.11-nc \ 3.12.44-nc \ 3.11.10-nc \ -3.10.87-nc \ +3.10.88-nc \ 3.9.11-nc \ 3.8.13-nc \ 3.7.10-nc \ From 4fb4de5401bf47557dcb00ef0011e4fea7e71037 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 15 Sep 2015 05:20:11 +0000 Subject: [PATCH 2/3] scst_vdisk: Kernel 2.6.30 build fix git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6502 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index f66e9cfdd..939cc3afc 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -5063,6 +5063,17 @@ out: return CMD_SUCCEEDED; } +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31) +/* + * See also patch "block: Export I/O topology for block devices and partitions" + * (commit ID c72758f33784). + */ +static inline unsigned int queue_physical_block_size(struct request_queue *q) +{ + return 4096; +} +#endif + static enum compl_status_e vdisk_exec_read_capacity16(struct vdisk_cmd_params *p) { struct scst_cmd *cmd = p->cmd; From dee1c4e0fcb043b542d57d7f07d044619d9d821e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 15 Sep 2015 05:27:12 +0000 Subject: [PATCH 3/3] scst_lib: Fix procfs build git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6503 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index b81559787..53f2b71ca 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -4329,9 +4329,9 @@ struct scst_acg *scst_alloc_add_acg(struct scst_tgt *tgt, if (rc != 0) goto out_del; } -#endif kobject_get(&tgt->tgt_kobj); +#endif out: TRACE_EXIT_HRES(acg); @@ -4418,7 +4418,9 @@ static void scst_free_acg(struct scst_acg *acg) kfree(acg->acg_name); kfree(acg); +#ifndef CONFIG_SCST_PROC kobject_put(&tgt->tgt_kobj); +#endif } static void scst_release_acg(struct kref *kref)