From 329ac0347d86ad66f5ad82542c5ab79b37ae2aa5 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Fri, 21 Jan 2022 17:25:00 -0800 Subject: [PATCH] Remove unused scoutfs_net_cancel_request() The net _cancel_request call hasn't been used or tested in approximately a bazillion years. Best to get rid of it and have to add and test it if we think we need it again. Signed-off-by: Zach Brown --- kmod/src/net.c | 17 ----------------- kmod/src/net.h | 3 --- 2 files changed, 20 deletions(-) diff --git a/kmod/src/net.c b/kmod/src/net.c index e028ce22..7d8316b5 100644 --- a/kmod/src/net.c +++ b/kmod/src/net.c @@ -1772,23 +1772,6 @@ int scoutfs_net_response_node(struct super_block *sb, NULL, NULL, NULL); } -/* - * The response function that was submitted with the request is not - * called if the request is canceled here. - */ -void scoutfs_net_cancel_request(struct super_block *sb, - struct scoutfs_net_connection *conn, - u8 cmd, u64 id) -{ - struct message_send *msend; - - spin_lock(&conn->lock); - msend = find_request(conn, cmd, id); - if (msend) - complete_send(conn, msend); - spin_unlock(&conn->lock); -} - struct sync_request_completion { struct completion comp; void *resp; diff --git a/kmod/src/net.h b/kmod/src/net.h index 847e9204..fe2c29e4 100644 --- a/kmod/src/net.h +++ b/kmod/src/net.h @@ -134,9 +134,6 @@ int scoutfs_net_submit_request_node(struct super_block *sb, u64 rid, u8 cmd, void *arg, u16 arg_len, scoutfs_net_response_t resp_func, void *resp_data, u64 *id_ret); -void scoutfs_net_cancel_request(struct super_block *sb, - struct scoutfs_net_connection *conn, - u8 cmd, u64 id); int scoutfs_net_sync_request(struct super_block *sb, struct scoutfs_net_connection *conn, u8 cmd, void *arg, unsigned arg_len,