]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2dd41b3f5aa361df9282d2bbeeb6ee3a9c7566c
treeb40d33285049af3c137c24851ca2fb9f6d8e0540
parent5c2fe1fd6a76e3407dcf95489cbd4bbfa8a39d62
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: 9ef86a12d11ee0 ("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