Rajasi Mandal
1ef15fbe67
cifs: client: enforce consistent handling of multichannel and max_channels
...
Previously, the behavior of the multichannel and max_channels mount
options was inconsistent and order-dependent. For example, specifying
"multichannel,max_channels=1" would result in 2 channels, while
"max_channels=1,multichannel" would result in 1 channel. Additionally,
conflicting combinations such as "nomultichannel,max_channels=3" or
"multichannel,max_channels=1" did not produce errors and could lead to
unexpected channel counts.
This commit introduces two new fields in smb3_fs_context to explicitly
track whether multichannel and max_channels were specified during
mount. The option parsing and validation logic is updated to ensure:
- The outcome is no longer dependent on the order of options.
- Conflicting combinations (e.g., "nomultichannel,max_channels=3" or
"multichannel,max_channels=1") are detected and result in an error.
- The number of channels created is consistent with the specified
options.
This improves the reliability and predictability of mount option
handling for SMB3 multichannel support.
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com >
Signed-off-by: Rajasi Mandal <rajasimandal@microsoft.com >
Signed-off-by: Steve French <stfrench@microsoft.com >
2025-12-03 23:32:44 -06:00
..
2025-12-01 14:18:01 -08:00
2025-07-28 13:43:25 -07:00
2025-10-20 20:22:26 +02:00
2025-12-03 17:24:33 -08:00
2025-12-01 17:32:07 -08:00
2025-10-20 20:22:26 +02:00
2025-12-01 09:02:34 -08:00
2025-12-03 20:03:46 -08:00
2025-12-01 16:13:46 -08:00
2025-12-03 12:42:36 -08:00
2025-10-20 20:22:26 +02:00
2025-10-03 16:32:36 -07:00
2025-10-20 20:22:26 +02:00
2025-12-01 09:02:34 -08:00
2025-11-14 13:15:58 +01:00
2025-11-04 19:10:33 -08:00
2025-12-01 16:13:46 -08:00
2025-11-12 10:12:39 +01:00
2025-10-20 20:22:26 +02:00
2025-12-03 20:14:44 -08:00
2025-11-17 09:11:27 -08:00
2025-10-20 20:22:26 +02:00
2025-12-01 14:39:03 -08:00
2025-12-01 14:18:01 -08:00
2025-12-01 14:18:01 -08:00
2025-10-20 20:22:26 +02:00
2025-12-03 18:58:57 -08:00
2025-12-01 10:26:38 -08:00
2025-12-03 20:08:32 -08:00
2025-12-03 20:08:32 -08:00
2025-12-01 09:02:34 -08:00
2025-12-01 14:18:01 -08:00
2025-10-21 15:46:17 -07:00
2025-12-01 10:26:38 -08:00
2025-12-01 09:02:34 -08:00
2025-10-10 13:10:06 -04:00
2025-10-20 20:22:26 +02:00
2025-12-01 09:02:34 -08:00
2025-10-20 20:22:26 +02:00
2025-11-25 19:20:42 -08:00
2025-12-01 15:22:40 -08:00
2025-12-01 10:26:38 -08:00
2025-12-01 15:34:41 -08:00
2025-08-05 16:45:40 -07:00
2025-12-03 17:24:33 -08:00
2025-12-01 14:18:01 -08:00
2025-12-01 17:32:07 -08:00
2025-12-01 14:18:01 -08:00
2025-12-03 17:24:33 -08:00
2025-12-01 14:18:01 -08:00
2025-10-20 20:22:26 +02:00
2025-12-01 09:02:34 -08:00
2025-12-01 16:31:21 -08:00
2025-12-01 19:50:58 -08:00
2025-09-29 18:08:34 -07:00
2025-10-20 20:22:26 +02:00
2025-10-20 20:22:26 +02:00
2025-10-20 20:22:26 +02:00
2025-09-15 16:09:42 +02:00
2025-12-02 11:55:58 -08:00
2025-10-20 20:22:26 +02:00
2025-12-03 23:32:44 -06:00
2025-10-20 20:22:26 +02:00
2025-10-17 09:48:34 +02:00
2025-07-28 09:56:09 -07:00
2025-10-20 20:22:26 +02:00
2025-10-20 20:22:26 +02:00
2025-10-20 20:22:26 +02:00
2025-09-16 23:59:38 -04:00
2025-09-29 15:55:20 -07:00
2025-12-03 20:19:38 -08:00
2025-12-01 09:02:34 -08:00
2025-11-04 12:36:33 +01:00
2025-11-28 12:42:31 +01:00
2025-11-12 09:38:34 +01:00
2025-12-01 13:45:41 -08:00
2025-07-28 17:11:40 -07:00
2025-11-04 08:33:33 +01:00
2025-12-01 13:45:41 -08:00
2025-09-15 21:17:08 -04:00
2025-12-01 10:26:38 -08:00
2025-12-03 17:24:33 -08:00
2025-12-01 08:14:00 -08:00
2025-12-01 09:02:34 -08:00
2025-07-31 14:57:54 -07:00
2025-10-20 20:22:26 +02:00
2025-11-28 12:42:31 +01:00
2025-11-28 12:42:32 +01:00
2025-12-02 08:48:53 -08:00
2025-11-12 09:38:37 +01:00
2025-11-28 12:42:31 +01:00
2025-11-19 12:17:31 +01:00
2025-10-07 12:48:33 +02:00
2025-12-01 17:32:07 -08:00
2025-09-04 15:20:51 -04:00
2025-11-05 09:51:30 +01:00
2025-11-05 22:51:23 +01:00
2025-12-01 09:20:51 -08:00
2025-08-11 14:52:41 +02:00
2025-11-12 09:38:36 +01:00
2025-12-01 09:02:34 -08:00
2025-11-14 13:15:56 +01:00
2025-09-01 13:08:01 +02:00
2025-10-02 18:18:33 -07:00
2025-09-03 20:49:32 -07:00
2025-12-01 16:13:46 -08:00
2025-11-28 10:30:41 +01:00
2025-11-05 09:51:30 +01:00
2025-11-11 10:01:31 +01:00
2025-09-21 14:22:16 -07:00
2025-12-01 16:13:46 -08:00
2025-12-01 17:32:07 -08:00
2025-12-01 17:32:07 -08:00
2025-12-01 17:32:07 -08:00
2025-12-01 10:17:39 -08:00
2025-10-20 20:22:26 +02:00
2025-09-15 21:26:44 -04:00
2025-09-15 21:26:44 -04:00
2025-11-12 09:38:34 +01:00
2025-08-15 16:11:47 +02:00
2025-11-04 08:28:34 +01:00
2025-11-28 12:42:32 +01:00
2025-11-25 10:11:16 +01:00
2025-09-15 21:17:07 -04:00
2025-12-01 09:20:51 -08:00
2025-12-01 09:20:51 -08:00
2025-11-28 12:42:32 +01:00
2025-11-28 12:42:33 +01:00
2025-12-01 15:34:41 -08:00
2025-11-12 09:38:34 +01:00