From 5c43e0ae6b1eb49a8288b2a72b402c78858bd24e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 10 Feb 2015 13:28:24 +0000 Subject: [PATCH] scst_local: RHEL 5 fix (merge r4828 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@6048 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 85f4e2af1..406ab414e 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -1242,7 +1242,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; }