diff options
author | Steve French <stfrench@microsoft.com> | 2019-09-09 13:30:15 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-09-16 11:43:38 -0500 |
commit | 10328c44cc1506dd82fd835efcaafd519866c464 (patch) | |
tree | 52a8a71596ab8a61c27fa1f7d19ddbf6728d2492 /fs/cifs/cifsfs.c | |
parent | 496902dc173dead0e5eeba1f2fd4abd9ba6f2da0 (diff) | |
download | linux-10328c44cc1506dd82fd835efcaafd519866c464.tar.bz2 |
smb3: only offload decryption of read responses if multiple requests
No point in offloading read decryption if no other requests on the
wire
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index ebf85a5d95e4..c1b685072063 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -1503,11 +1503,14 @@ init_cifs(void) } /* - * BB Consider setting limit!=0 maybe to min(num_of_cores - 1, 3) so we - * don't launch too many worker threads + * Consider in future setting limit!=0 maybe to min(num_of_cores - 1, 3) + * so that we don't launch too many worker threads but + * Documentation/workqueue.txt recommends setting it to 0 */ + + /* WQ_UNBOUND allows decrypt tasks to run on any CPU */ decrypt_wq = alloc_workqueue("smb3decryptd", - WQ_FREEZABLE|WQ_MEM_RECLAIM, 0); + WQ_UNBOUND|WQ_FREEZABLE|WQ_MEM_RECLAIM, 0); if (!decrypt_wq) { rc = -ENOMEM; goto out_destroy_cifsiod_wq; |