| 383 | | if (sm_p->getattr.attr.capability.timeout == 0) |
| 384 | | { |
| 385 | | trimmed_mask |= PVFS_ATTR_CAPABILITY; |
| 386 | | gossip_debug(GOSSIP_ACACHE_DEBUG, "Cache capability invalid...\n"); |
| 387 | | } |
| 388 | | if(PINT_util_get_current_time() > |
| 389 | | (sm_p->getattr.attr.capability.timeout - CAP_TIMEOUT_BUFFER)) |
| 390 | | { |
| 391 | | trimmed_mask |= PVFS_ATTR_CAPABILITY; |
| 392 | | gossip_debug(GOSSIP_ACACHE_DEBUG, "Cache capability timeout...\n"); |
| 393 | | } |
| 394 | | } |
| | 383 | /* add back the capability flag */ |
| | 384 | trimmed_mask |= PVFS_ATTR_CAPABILITY; |
| | 385 | } |
| | 386 | |
| | 387 | /* nlmills: TODO: don't accept the capability if it is about to |
| | 388 | * time out. make use of CAP_TIMEOUT_BUFFER. |
| | 389 | */ |