Commit 66fa3ce
fs: Add async write file modification handling.
This adds a file_modified_async() function to return -EAGAIN if the
request either requires to remove privileges or needs to update the file
modification time. This is required for async buffered writes, so the
request gets handled in the io worker of io-uring.
Signed-off-by: Stefan Roesch <shr@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20220623175157.1715274-11-shr@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 6a2aa5d commit 66fa3ce
2 files changed
+43
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2116 | 2116 | | |
2117 | 2117 | | |
2118 | 2118 | | |
2119 | | - | |
| 2119 | + | |
2120 | 2120 | | |
| 2121 | + | |
2121 | 2122 | | |
2122 | 2123 | | |
2123 | 2124 | | |
2124 | 2125 | | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
2125 | 2129 | | |
2126 | 2130 | | |
2127 | 2131 | | |
2128 | 2132 | | |
2129 | | - | |
| 2133 | + | |
2130 | 2134 | | |
2131 | 2135 | | |
2132 | 2136 | | |
| |||
2136 | 2140 | | |
2137 | 2141 | | |
2138 | 2142 | | |
2139 | | - | |
| 2143 | + | |
2140 | 2144 | | |
2141 | 2145 | | |
2142 | 2146 | | |
| |||
2146 | 2150 | | |
2147 | 2151 | | |
2148 | 2152 | | |
| 2153 | + | |
| 2154 | + | |
2149 | 2155 | | |
2150 | 2156 | | |
2151 | 2157 | | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
2152 | 2174 | | |
2153 | 2175 | | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
2154 | 2193 | | |
2155 | 2194 | | |
2156 | 2195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2390 | 2390 | | |
2391 | 2391 | | |
2392 | 2392 | | |
| 2393 | + | |
2393 | 2394 | | |
2394 | 2395 | | |
2395 | 2396 | | |
| |||
0 commit comments