summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/esas2r/esas2r_targdb.c
diff options
context:
space:
mode:
authorBradley Grove2013-10-01 20:26:01 +0200
committerJames Bottomley2013-10-25 10:58:59 +0200
commit9588d24e36003b53f76e43b4fadfc5b35207be04 (patch)
treef07e3a9eff31669e00473fae824cccaad9e65996 /drivers/scsi/esas2r/esas2r_targdb.c
parent[SCSI] lpfc 8.3.43: Update lpfc version to driver version 8.3.43 (diff)
downloadkernel-qcow2-linux-9588d24e36003b53f76e43b4fadfc5b35207be04.tar.gz
kernel-qcow2-linux-9588d24e36003b53f76e43b4fadfc5b35207be04.tar.xz
kernel-qcow2-linux-9588d24e36003b53f76e43b4fadfc5b35207be04.zip
[SCSI] esas2r: Directly call kernel functions for atomic bit operations
Previously the code embedded the kernel's test_bit/clear_bit functions in wrappers that accepted u32 parameters. The wrapper cast these parameters to longs before passing them to the kernel's bit functions. This did not work properly on platforms with 64-bit longs. Signed-off-by: Bradley Grove <bgrove@attotech.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/esas2r/esas2r_targdb.c')
-rw-r--r--drivers/scsi/esas2r/esas2r_targdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/esas2r/esas2r_targdb.c b/drivers/scsi/esas2r/esas2r_targdb.c
index e540a2fa3d15..bf45beaad439 100644
--- a/drivers/scsi/esas2r/esas2r_targdb.c
+++ b/drivers/scsi/esas2r/esas2r_targdb.c
@@ -86,7 +86,7 @@ void esas2r_targ_db_report_changes(struct esas2r_adapter *a)
esas2r_trace_enter();
- if (a->flags & AF_DISC_PENDING) {
+ if (test_bit(AF_DISC_PENDING, &a->flags)) {
esas2r_trace_exit();
return;
}