]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.fixes/scsi-fixup-failfast-definitions
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / scsi-fixup-failfast-definitions
1 From: James Smart <James.Smart@Emulex.Com>
2 Date: Thu, 20 Nov 2008 15:58:01 +0000 (-0500)
3 Subject: fc_transport: fix old bug on bitflag definitions
4 X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fjejb%2Fscsi-rc-fixes-2.6.git;a=commitdiff_plain;h=21098c68df7115554fe041170899bdff709efd08
5 References: bnc#447814
6
7 When the fastfail flag was added, it did not account for the flags
8 being bit fields. Correct the definition so there is no longer a
9 conflict.
10
11 Signed-off-by: James Smart <james.smart@emulex.com>
12 Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
13 Signed-off-by: Hannes Reinecke <hare@suse.de>
14 ---
15
16 diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h
17 index 49d8913..6e04e6f 100644
18 --- a/include/scsi/scsi_transport_fc.h
19 +++ b/include/scsi/scsi_transport_fc.h
20 @@ -357,7 +357,7 @@ struct fc_rport { /* aka fc_starget_attrs */
21 /* bit field values for struct fc_rport "flags" field: */
22 #define FC_RPORT_DEVLOSS_PENDING 0x01
23 #define FC_RPORT_SCAN_PENDING 0x02
24 -#define FC_RPORT_FAST_FAIL_TIMEDOUT 0x03
25 +#define FC_RPORT_FAST_FAIL_TIMEDOUT 0x04
26
27 #define dev_to_rport(d) \
28 container_of(d, struct fc_rport, dev)