mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
smb: client: change smbd_deregister_mr() to return void
No callers checks the return value and this makes further changes easier. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
e487f13cc9
commit
abe5b71c39
2 changed files with 2 additions and 4 deletions
|
|
@ -2612,7 +2612,7 @@ static void local_inv_done(struct ib_cq *cq, struct ib_wc *wc)
|
|||
* and we have to locally invalidate the buffer to prevent data is being
|
||||
* modified by remote peer after upper layer consumes it
|
||||
*/
|
||||
int smbd_deregister_mr(struct smbdirect_mr_io *smbdirect_mr)
|
||||
void smbd_deregister_mr(struct smbdirect_mr_io *smbdirect_mr)
|
||||
{
|
||||
struct ib_send_wr *wr;
|
||||
struct smbdirect_socket *sc = smbdirect_mr->socket;
|
||||
|
|
@ -2662,8 +2662,6 @@ int smbd_deregister_mr(struct smbdirect_mr_io *smbdirect_mr)
|
|||
done:
|
||||
if (atomic_dec_and_test(&sc->mr_io.used.count))
|
||||
wake_up(&sc->mr_io.cleanup.wait_queue);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static bool smb_set_sge(struct smb_extract_to_rdma *rdma,
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ int smbd_send(struct TCP_Server_Info *server,
|
|||
struct smbdirect_mr_io *smbd_register_mr(
|
||||
struct smbd_connection *info, struct iov_iter *iter,
|
||||
bool writing, bool need_invalidate);
|
||||
int smbd_deregister_mr(struct smbdirect_mr_io *mr);
|
||||
void smbd_deregister_mr(struct smbdirect_mr_io *mr);
|
||||
|
||||
#else
|
||||
#define cifs_rdma_enabled(server) 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue