nfs: Don't busy-wait on SIGKILL in __nfs_iocounter_wait
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / nfs / pagelist.c
index 2ffebf2..27d7f27 100644 (file)
@@ -113,7 +113,7 @@ __nfs_iocounter_wait(struct nfs_io_counter *c)
                if (atomic_read(&c->io_count) == 0)
                        break;
                ret = nfs_wait_bit_killable(&c->flags);
-       } while (atomic_read(&c->io_count) != 0);
+       } while (atomic_read(&c->io_count) != 0 && !ret);
        finish_wait(wq, &q.wait);
        return ret;
 }