Commit da05ba2
nfsd: hold reference to delegation when updating it for cb_getattr
Once we've dropped the flc_lock, there is nothing that ensures that the
delegation that was found will still be around later. Take a reference
to it while holding the lock and then drop it when we've finished with
the delegation.
Fixes: c596772 ("NFSD: handle GETATTR conflict with write delegation")
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent f25d1b5 commit da05ba2
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8837 | 8837 | | |
8838 | 8838 | | |
8839 | 8839 | | |
8840 | | - | |
8841 | 8840 | | |
8842 | 8841 | | |
8843 | 8842 | | |
| |||
8862 | 8861 | | |
8863 | 8862 | | |
8864 | 8863 | | |
8865 | | - | |
| 8864 | + | |
| 8865 | + | |
8866 | 8866 | | |
8867 | 8867 | | |
8868 | 8868 | | |
8869 | 8869 | | |
8870 | 8870 | | |
8871 | 8871 | | |
8872 | 8872 | | |
| 8873 | + | |
8873 | 8874 | | |
8874 | 8875 | | |
8875 | 8876 | | |
| |||
8879 | 8880 | | |
8880 | 8881 | | |
8881 | 8882 | | |
8882 | | - | |
| 8883 | + | |
| 8884 | + | |
8883 | 8885 | | |
| 8886 | + | |
8884 | 8887 | | |
8885 | 8888 | | |
8886 | 8889 | | |
| |||
8900 | 8903 | | |
8901 | 8904 | | |
8902 | 8905 | | |
| 8906 | + | |
8903 | 8907 | | |
8904 | 8908 | | |
8905 | 8909 | | |
| |||
0 commit comments