Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*

@@ -221,12 +221,12 @@
  * is aborted and then freed before fcoe_watchdog() call up to release the
  * frame.
  * These two situation should seldom happen. But just invoke this seems won't
  * downgrade the performance too much, so we keep it.
  */
-#define FCOET_BUSY_XCHG(xch)    atomic_add_8(&(xch)->xch_ref, 1)
-#define FCOET_RELE_XCHG(xch)    atomic_add_8(&(xch)->xch_ref, -1)
+#define FCOET_BUSY_XCHG(xch)    atomic_inc_8(&(xch)->xch_ref)
+#define FCOET_RELE_XCHG(xch)    atomic_dec_8(&(xch)->xch_ref)
 
 #define XCH_FLAG_NONFCP_REQ_SENT        0x0001
 #define XCH_FLAG_NONFCP_RESP_SENT       0x0002
 #define XCH_FLAG_FCP_CMD_RCVD           0x0004
 #define XCH_FLAG_INI_ASKED_ABORT        0x0008