scsi: qedf: fixup compilation warning about atomic_t usage
authorDupuis, Chad <chad.dupuis@cavium.com>
Thu, 23 Feb 2017 15:01:03 +0000 (07:01 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Feb 2017 21:59:04 +0000 (16:59 -0500)
commit1afca6b5f31616d330fb64a0c87060640a75ff6a
treeb40d33285049af3c137c24851ca2fb9f6d8e0540
parentfcbfffe2c5cbec0c1721b2261c316b961ad50208
scsi: qedf: fixup compilation warning about atomic_t usage

Based on an original patch by Hannes Reinecke.

The driver didn't follow the atomic_t vs refcount_t change, and anyway
one should be using kref_read() instead of accessing the counter inside
an kref.

Fixes: 61d8658b4a435e ("scsi: qedf: Add QLogic FastLinQ offload FCoE driver framework.)
Cc: Hannes Reinecke <hare@suse.de>
Cc: Nilesh Javali <nilesh.javali@cavium.com>
Signed-off-by: Dupuis, Chad <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_els.c
drivers/scsi/qedf/qedf_io.c