/* if there are 16 or more status_read requests missing an adapter_reopen is triggered  */
int zfcp_status_read_refill(struct zfcp_adapter *adapter)
/* if there are 16 or more status_read requests missing an adapter_reopen is triggered  */
int zfcp_status_read_refill(struct zfcp_adapter *adapter)
{
	while (atomic_read(&adapter->stat_miss) > 0)
		if (zfcp_fsf_status_read(adapter->qdio)) {
			if (atomic_read(&adapter->stat_miss) >= 16) {
				zfcp_erp_adapter_reopen(adapter, 0, "axsref1",
							NULL);
				return 1;
			}
			break;
		} else
			atomic_dec(&adapter->stat_miss);
	return 0;
}