diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index c1b87cc44..2f9b22c20 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -2784,7 +2784,9 @@ static int blockio_flush(struct block_device *bdev) TRACE_ENTRY(); -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) \ + && !(defined(CONFIG_SUSE_KERNEL) \ + && LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 34)) res = blkdev_issue_flush(bdev, NULL); #else res = blkdev_issue_flush(bdev, GFP_KERNEL, NULL, BLKDEV_IFL_WAIT);