mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
Merge branch 'svn-trunk'
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
#define QLT_USE_PERCPU_IDA 0
|
||||
#define QLT_USE_SBITMAP 0
|
||||
#include <linux/bitmap.h>
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0)
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) && \
|
||||
!(defined(RHEL_MAJOR) && RHEL_MAJOR -0 >= 8)
|
||||
#define QLT_USE_PERCPU_IDA 1
|
||||
#define QLT_USE_SBITMAP 0
|
||||
/* See also commit 798ab48eecdf ("idr: Percpu ida") # v3.12 */
|
||||
|
||||
@@ -7149,7 +7149,8 @@ static int qla2xxx_map_queues(struct Scsi_Host *shost)
|
||||
{
|
||||
int rc;
|
||||
scsi_qla_host_t *vha = (scsi_qla_host_t *)shost->hostdata;
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) || \
|
||||
(defined(RHEL_MAJOR) && RHEL_MAJOR -0 >= 8)
|
||||
struct blk_mq_queue_map *qmap = &shost->tag_set.map[0];
|
||||
|
||||
if (USER_CTRL_IRQ(vha->hw) || !vha->hw->mqiobase)
|
||||
|
||||
@@ -143,7 +143,8 @@ static inline unsigned int scst_blk_rq_cpu(struct request *rq)
|
||||
* affinity") # v2.6.28.
|
||||
*/
|
||||
return 0;
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 21, 0)
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 21, 0) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8)
|
||||
return rq->cpu;
|
||||
#else
|
||||
return blk_mq_rq_cpu(rq);
|
||||
@@ -523,8 +524,9 @@ irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify)
|
||||
|
||||
/* <linux/iocontext.h> */
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) || \
|
||||
LINUX_VERSION_CODE >= KERNEL_VERSION(4, 21, 0)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) || \
|
||||
LINUX_VERSION_CODE >= KERNEL_VERSION(4, 21, 0) || \
|
||||
(defined(RHEL_MAJOR) && RHEL_MAJOR -0 >= 8)
|
||||
|
||||
static inline struct io_context *
|
||||
scst_get_task_io_context(struct task_struct *task,
|
||||
|
||||
@@ -8594,7 +8594,8 @@ static void scsi_end_async(struct request *req, blk_status_t error)
|
||||
|
||||
kmem_cache_free(scsi_io_context_cache, sioc);
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 21, 0)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 21, 0) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8)
|
||||
/* See also commit 92bc5a24844a ("block: remove __blk_put_request()") */
|
||||
__blk_put_request(req->q, req);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user