Linux kernel v4.10 build fix.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2017-03-08 04:36:45 +00:00
parent 1bf5d439d6
commit d91dd9b3ed
+8
View File
@@ -8000,7 +8000,15 @@ static struct request *__blk_map_kern_sg(struct request_queue *q,
if (bw != NULL) {
atomic_set(&bw->bios_inflight, bios);
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 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: