mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scst: Provide a definition for bdev_io_opt() for kernel versions < v2.6.32 (merge r7878 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7890 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -119,6 +119,14 @@ static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 32)
|
||||
/* See also commit ac481c20ef8f ("block: Topology ioctls") # v2.6.32 */
|
||||
static inline int bdev_io_opt(struct block_device *bdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* <linux/blk-mq.h> */
|
||||
|
||||
static inline unsigned int scst_blk_rq_cpu(struct request *rq)
|
||||
|
||||
Reference in New Issue
Block a user