From cd6269c9ea601e89bf9cd8b6c73f79cf594b8c7f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 4 Dec 2014 21:13:33 -0800 Subject: s3: leases: Make aio_add_req_to_fsp() public. We're going to need this to stop handle closures with outstanding async SMB2 renames causing a crash. Signed-off-by: Jeremy Allison Reviewed-by: Stefan Metzmacher --- source3/smbd/aio.c | 2 +- source3/smbd/proto.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 56b4cfc33d..e2306a9828 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -115,7 +115,7 @@ static int aio_del_req_from_fsp(struct aio_req_fsp_link *lnk) return 0; } -static bool aio_add_req_to_fsp(files_struct *fsp, struct tevent_req *req) +bool aio_add_req_to_fsp(files_struct *fsp, struct tevent_req *req) { size_t array_len; struct aio_req_fsp_link *lnk; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index e40a77b4e8..3798555682 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -91,6 +91,7 @@ NTSTATUS schedule_aio_smb2_write(connection_struct *conn, DATA_BLOB in_data, bool write_through); bool cancel_smb2_aio(struct smb_request *smbreq); +bool aio_add_req_to_fsp(files_struct *fsp, struct tevent_req *req); /* The following definitions come from smbd/blocking.c */ -- cgit