pnfs.c (f1615bbe9be4def59c3b3eaddb60722efeed16c2) pnfs.c (743162013d40ca612b4cb53d3a200dff2d9ab26e)
1/*
2 * pNFS functions to call and manage layout drivers.
3 *
4 * Copyright (c) 2002 [year of first publication]
5 * The Regents of the University of Michigan
6 * All Rights Reserved
7 *
8 * Dean Hildebrand <dhildebz@umich.edu>

--- 1871 unchanged lines hidden (view full) ---

1880 return 0;
1881
1882 dprintk("--> %s inode %lu\n", __func__, inode->i_ino);
1883
1884 status = -EAGAIN;
1885 if (test_and_set_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags)) {
1886 if (!sync)
1887 goto out;
1/*
2 * pNFS functions to call and manage layout drivers.
3 *
4 * Copyright (c) 2002 [year of first publication]
5 * The Regents of the University of Michigan
6 * All Rights Reserved
7 *
8 * Dean Hildebrand <dhildebz@umich.edu>

--- 1871 unchanged lines hidden (view full) ---

1880 return 0;
1881
1882 dprintk("--> %s inode %lu\n", __func__, inode->i_ino);
1883
1884 status = -EAGAIN;
1885 if (test_and_set_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags)) {
1886 if (!sync)
1887 goto out;
1888 status = wait_on_bit_lock(&nfsi->flags,
1888 status = wait_on_bit_lock_action(&nfsi->flags,
1889 NFS_INO_LAYOUTCOMMITTING,
1890 nfs_wait_bit_killable,
1891 TASK_KILLABLE);
1892 if (status)
1893 goto out;
1894 }
1895
1896 status = -ENOMEM;

--- 52 unchanged lines hidden ---
1889 NFS_INO_LAYOUTCOMMITTING,
1890 nfs_wait_bit_killable,
1891 TASK_KILLABLE);
1892 if (status)
1893 goto out;
1894 }
1895
1896 status = -ENOMEM;

--- 52 unchanged lines hidden ---