The Samba-Bugzilla – Attachment 16043 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]
raw patch for disconnect with aio outstanding.
look (text/plain), 1.15 KB, created by
Jeremy Allison
on 2020-06-16 01:29:57 UTC
(
hide
)
Description:
raw patch for disconnect with aio outstanding.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2020-06-16 01:29:57 UTC
Size:
1.15 KB
patch
obsolete
>diff --git a/source3/smbd/close.c b/source3/smbd/close.c >index da28559e49b..c90bcfa57bb 100644 >--- a/source3/smbd/close.c >+++ b/source3/smbd/close.c >@@ -636,7 +636,8 @@ static NTSTATUS ntstatus_keeperror(NTSTATUS s1, NTSTATUS s2) > return s2; > } > >-static void assert_no_pending_aio(struct files_struct *fsp, >+static void assert_no_pending_aio(struct smb_request *req, >+ struct files_struct *fsp, > enum file_close_type close_type) > { > unsigned num_requests = fsp->num_aio_requests; >@@ -645,6 +646,11 @@ static void assert_no_pending_aio(struct files_struct *fsp, > return; > } > >+ if (close_type == SHUTDOWN_CLOSE && >+ !NT_STATUS_IS_OK(req->xconn->transport.status)) >+ return; >+ } >+ > DBG_ERR("fsp->num_aio_requests=%u\n", num_requests); > smb_panic("can not close with outstanding aio requests"); > return; >@@ -666,7 +672,7 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp, > connection_struct *conn = fsp->conn; > bool is_durable = false; > >- assert_no_pending_aio(fsp, close_type); >+ assert_no_pending_aio(req, fsp, close_type); > > while (talloc_array_length(fsp->blocked_smb1_lock_reqs) != 0) { > smbd_smb1_brl_finish_by_req(
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