mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 13:41:27 +00:00
scst: Port to Linux kernel v5.8
Flag RQF_COPY_USER has been removed from kernel v5.8. Since that flag
only controls padding that we don't need, do not set that flag. See also
Linux kernel commit f18573abcc57 ("block: move the padding adjustment to
blk_rq_map_sg") # v2.6.26.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8955 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -8357,20 +8357,8 @@ static struct request *__blk_map_kern_sg(struct request_queue *q,
|
||||
rq->cmd_type = REQ_TYPE_BLOCK_PC;
|
||||
#endif
|
||||
|
||||
if (bw != NULL) {
|
||||
if (bw)
|
||||
atomic_set(&bw->bios_inflight, bios);
|
||||
#if (!defined(CONFIG_SUSE_KERNEL) && \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)) || \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
|
||||
/*
|
||||
* See also patch "block: split out request-only flags into a
|
||||
* new namespace" (commit e806402130c9).
|
||||
*/
|
||||
rq->cmd_flags |= REQ_COPY_USER;
|
||||
#else
|
||||
rq->rq_flags |= RQF_COPY_USER;
|
||||
#endif
|
||||
}
|
||||
|
||||
out:
|
||||
return rq;
|
||||
|
||||
Reference in New Issue
Block a user