Commit fcb5309
nfsd: don't take nfsd4_copy ref for OP_OFFLOAD_STATUS
We're not doing any blocking operations for OP_OFFLOAD_STATUS, so taking
and putting a reference is a waste of effort. Take the client lock,
search for the copy and fetch the wr_bytes_written field and return.
Also, make find_async_copy a static function.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent c4a9f05 commit fcb5309
2 files changed
Lines changed: 24 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1824 | 1824 | | |
1825 | 1825 | | |
1826 | 1826 | | |
1827 | | - | |
1828 | | - | |
| 1827 | + | |
| 1828 | + | |
1829 | 1829 | | |
1830 | 1830 | | |
1831 | 1831 | | |
1832 | | - | |
| 1832 | + | |
| 1833 | + | |
1833 | 1834 | | |
1834 | 1835 | | |
1835 | 1836 | | |
1836 | | - | |
1837 | | - | |
1838 | 1837 | | |
1839 | 1838 | | |
1840 | | - | |
1841 | 1839 | | |
1842 | 1840 | | |
1843 | 1841 | | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
1844 | 1855 | | |
1845 | 1856 | | |
1846 | 1857 | | |
| |||
1925 | 1936 | | |
1926 | 1937 | | |
1927 | 1938 | | |
| 1939 | + | |
1928 | 1940 | | |
1929 | 1941 | | |
1930 | 1942 | | |
1931 | 1943 | | |
1932 | 1944 | | |
1933 | 1945 | | |
1934 | | - | |
| 1946 | + | |
1935 | 1947 | | |
1936 | 1948 | | |
1937 | 1949 | | |
1938 | | - | |
1939 | | - | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
1940 | 1953 | | |
1941 | | - | |
1942 | | - | |
| 1954 | + | |
1943 | 1955 | | |
| 1956 | + | |
1944 | 1957 | | |
1945 | 1958 | | |
1946 | 1959 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
709 | | - | |
710 | 708 | | |
711 | 709 | | |
712 | 710 | | |
| |||
0 commit comments