The Samba-Bugzilla – Attachment 16054 Details for
Bug 14301
smbd panic on force-close share during async io
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 4.12.next
0001-s3-smbd-Allow-a-SHUTDOWN_CLOSE-on-a-file-with-outsta.patch (text/plain), 1.15 KB, created by
Jeremy Allison
on 2020-06-17 01:20:53 UTC
(
hide
)
Description:
git-am fix for 4.12.next
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2020-06-17 01:20:53 UTC
Size:
1.15 KB
patch
obsolete
>From 0cb26bc95ebc22323c962595f615848d8b10fec6 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Tue, 16 Jun 2020 15:01:49 -0700 >Subject: [PATCH] s3: smbd: Allow a SHUTDOWN_CLOSE on a file with outstanding > aio if there are no client connections alive. > >The process is exiting now so pthreads will never complete to cause >problems. > >Signed-off-by: Jeremy Allison <jra@samba.org> >--- > source3/smbd/close.c | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/source3/smbd/close.c b/source3/smbd/close.c >index d5af62a277c..1e84057a170 100644 >--- a/source3/smbd/close.c >+++ b/source3/smbd/close.c >@@ -639,12 +639,17 @@ static NTSTATUS ntstatus_keeperror(NTSTATUS s1, NTSTATUS s2) > static void assert_no_pending_aio(struct files_struct *fsp, > enum file_close_type close_type) > { >+ struct smbXsrv_client *client = global_smbXsrv_client; > unsigned num_requests = fsp->num_aio_requests; > > if (num_requests == 0) { > return; > } > >+ if (close_type == SHUTDOWN_CLOSE && client->connections == NULL) { >+ return; >+ } >+ > DBG_ERR("fsp->num_aio_requests=%u\n", num_requests); > smb_panic("can not close with outstanding aio requests"); > return; >-- >2.20.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14301
:
15825
|
15837
|
15844
|
15847
|
15854
|
15858
|
15861
|
15867
|
15870
|
16043
|
16044
|
16054
|
16055
|
16064
|
16065
|
16069
|
16091