mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
scst_disk builds again on kernel 2.6.30 and before (was broken by r2836).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2965 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -132,6 +132,13 @@ static inline int set_cpus_allowed_ptr(struct task_struct *p,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
|
||||
static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
|
||||
{
|
||||
return q->max_hw_sectors;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Version numbers, the same as for the kernel.
|
||||
*
|
||||
|
||||
@@ -2441,13 +2441,6 @@ static struct scst_cmd *scst_post_exec_sn(struct scst_cmd *cmd,
|
||||
return res;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
|
||||
static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
|
||||
{
|
||||
return q->max_hw_sectors;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* cmd must be additionally referenced to not die inside */
|
||||
static int scst_do_real_exec(struct scst_cmd *cmd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user