Amir Goldstein 5b02bfc1e7 ovl: do not encode lower fh with upper sb_writers held
When lower fs is a nested overlayfs, calling encode_fh() on a lower
directory dentry may trigger copy up and take sb_writers on the upper fs
of the lower nested overlayfs.

The lower nested overlayfs may have the same upper fs as this overlayfs,
so nested sb_writers lock is illegal.

Move all the callers that encode lower fh to before ovl_want_write().

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
2023-10-31 00:12:57 +02:00
..
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-09-17 10:33:53 -07:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-08-29 17:45:22 -04:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-08-31 12:07:34 -05:00
2023-10-30 09:14:19 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-06 11:01:23 +02:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-06-28 20:35:21 -07:00
2023-06-26 09:50:21 -07:00
2023-08-24 16:20:30 -07:00
2023-07-26 14:56:07 +02:00
2023-08-21 13:46:25 -07:00
2023-10-30 09:14:19 -10:00
2023-10-19 11:02:47 +02:00
2023-10-30 09:47:13 -10:00
2023-08-28 11:04:18 -07:00
2023-08-29 20:21:42 -07:00
2023-08-19 12:12:12 +02:00
2023-08-31 15:32:18 -07:00
2023-08-02 09:13:09 -06:00
2023-10-30 09:14:19 -10:00
2023-10-30 09:47:13 -10:00
2023-08-15 08:32:45 +02:00