From e4fb5201e90fab2414a822d2fee5b71f89587387 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 29 Mar 2013 01:18:09 +0000 Subject: [PATCH] RHEL 5 does not support queue_flag_set_unlocked(). Hence disable the queue_flag_set_unlocked() call on RHEL 5. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4828 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst_local/scst_local.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index 55e86cca9..692d8f19f 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -1208,7 +1208,9 @@ static int scst_local_change_queue_depth(struct scsi_device *sdev, int qdepth) static int scst_local_slave_alloc(struct scsi_device *sdev) { +#if !defined(RHEL_MAJOR) || RHEL_MAJOR -0 >= 6 queue_flag_set_unlocked(QUEUE_FLAG_BIDI, sdev->request_queue); +#endif return 0; }