mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
scst_vdisk: Complete port to Linux kernel v5.12
This is a variant of a patch provided by Mark Ruijter. Fixes: https://github.com/bvanassche/scst/issues/34 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9380 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -488,8 +488,10 @@ static int vdisk_blockio_flush(struct block_device *bdev, gfp_t gfp_mask,
|
||||
res = blkdev_issue_flush(bdev, gfp_mask, NULL, BLKDEV_IFL_WAIT);
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)
|
||||
res = blkdev_issue_flush(bdev, gfp_mask, NULL);
|
||||
#else
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 12, 0)
|
||||
res = blkdev_issue_flush(bdev, gfp_mask);
|
||||
#else
|
||||
res = blkdev_issue_flush(bdev);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user