mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
eb0445887a
commit
504bb3b58e
1 changed files with 2 additions and 2 deletions
|
@ -2505,7 +2505,7 @@ he_close(struct atm_vcc *vcc)
|
||||||
* TBRQ, the host issues the close command to the adapter.
|
* TBRQ, the host issues the close command to the adapter.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 0) &&
|
while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 1) &&
|
||||||
(retry < MAX_RETRY)) {
|
(retry < MAX_RETRY)) {
|
||||||
msleep(sleep);
|
msleep(sleep);
|
||||||
if (sleep < 250)
|
if (sleep < 250)
|
||||||
|
@ -2514,7 +2514,7 @@ he_close(struct atm_vcc *vcc)
|
||||||
++retry;
|
++retry;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tx_inuse)
|
if (tx_inuse > 1)
|
||||||
hprintk("close tx cid 0x%x tx_inuse = %d\n", cid, tx_inuse);
|
hprintk("close tx cid 0x%x tx_inuse = %d\n", cid, tx_inuse);
|
||||||
|
|
||||||
/* 2.3.1.1 generic close operations with flush */
|
/* 2.3.1.1 generic close operations with flush */
|
||||||
|
|
Loading…
Reference in a new issue