|
@@ -116,7 +116,7 @@ __nfs_iocounter_wait(struct nfs_io_counter *c)
|
|
if (atomic_read(&c->io_count) == 0)
|
|
if (atomic_read(&c->io_count) == 0)
|
|
break;
|
|
break;
|
|
ret = nfs_wait_bit_killable(&q.key);
|
|
ret = nfs_wait_bit_killable(&q.key);
|
|
- } while (atomic_read(&c->io_count) != 0);
|
|
|
|
|
|
+ } while (atomic_read(&c->io_count) != 0 && !ret);
|
|
finish_wait(wq, &q.wait);
|
|
finish_wait(wq, &q.wait);
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|