mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
Builds now agains the openSUSE 11.3 kernel headers too. OpenSUSE 11.3 has a 2.6.34 kernel with blkdev_issue_flush() backported from 2.6.35.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user