Commit 504bb3b58e7314e0fe026da280e8168c1314be3d

Authored by chas williams - CONTRACTOR
Committed by David S. Miller
1 parent eb0445887a

atm: [he] adjust tests to account for sk_wmem_alloc changes

due to reference counting sk_wmem_alloc now has a value of 1 when all
the outstanding data has been sent.

Signed-off-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -2505,7 +2505,7 @@
2505 2505 * TBRQ, the host issues the close command to the adapter.
2506 2506 */
2507 2507  
2508   - while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 0) &&
  2508 + while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 1) &&
2509 2509 (retry < MAX_RETRY)) {
2510 2510 msleep(sleep);
2511 2511 if (sleep < 250)
... ... @@ -2514,7 +2514,7 @@
2514 2514 ++retry;
2515 2515 }
2516 2516  
2517   - if (tx_inuse)
  2517 + if (tx_inuse > 1)
2518 2518 hprintk("close tx cid 0x%x tx_inuse = %d\n", cid, tx_inuse);
2519 2519  
2520 2520 /* 2.3.1.1 generic close operations with flush */