Commit 825b82f
ceph: set correct cap mask for getattr request for read
In case of hitting the file EOF, ceph_read_iter() needs to retrieve the
file size from MDS, and Fr caps aren't neccessary.
[ idryomov: fold into existing retry_op == READ_INLINE branch ]
Reported-by: Frank Hsiao <frankhsiao@qnap.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Tested-by: Frank Hsiao <frankhsiao@qnap.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent 1065da2 commit 825b82f
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2129 | 2129 | | |
2130 | 2130 | | |
2131 | 2131 | | |
| 2132 | + | |
2132 | 2133 | | |
2133 | 2134 | | |
2134 | 2135 | | |
2135 | 2136 | | |
| 2137 | + | |
| 2138 | + | |
2136 | 2139 | | |
2137 | 2140 | | |
2138 | | - | |
2139 | | - | |
| 2141 | + | |
2140 | 2142 | | |
2141 | 2143 | | |
2142 | 2144 | | |
| |||
2177 | 2179 | | |
2178 | 2180 | | |
2179 | 2181 | | |
2180 | | - | |
| 2182 | + | |
2181 | 2183 | | |
2182 | 2184 | | |
2183 | 2185 | | |
| |||
0 commit comments