Linux CIFS filesystem development
 help / color / mirror / Atom feed
* [PATCH 1/2] ksmbd: remove duplicate flag set in smb2_write
@ 2022-06-13 23:01 Hyunchul Lee
  2022-06-13 23:01 ` [PATCH 2/2] ksmbd: smbd: handle RDMA CM time wait event Hyunchul Lee
  2022-06-13 23:08 ` [PATCH 1/2] ksmbd: remove duplicate flag set in smb2_write Namjae Jeon
  0 siblings, 2 replies; 9+ messages in thread
From: Hyunchul Lee @ 2022-06-13 23:01 UTC (permalink / raw)
  To: linux-cifs; +Cc: Namjae Jeon, Sergey Senozhatsky, Steve French, Hyunchul Lee

The writethrough flag is set again if
is_rdma_channel is false.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
---
 fs/ksmbd/smb2pdu.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/ksmbd/smb2pdu.c b/fs/ksmbd/smb2pdu.c
index e6f4ccc12f49..553aad4ca6fa 100644
--- a/fs/ksmbd/smb2pdu.c
+++ b/fs/ksmbd/smb2pdu.c
@@ -6506,9 +6506,6 @@ int smb2_write(struct ksmbd_work *work)
 				    le16_to_cpu(req->DataOffset));
 
 		ksmbd_debug(SMB, "flags %u\n", le32_to_cpu(req->Flags));
-		if (le32_to_cpu(req->Flags) & SMB2_WRITEFLAG_WRITE_THROUGH)
-			writethrough = true;
-
 		ksmbd_debug(SMB, "filename %pd, offset %lld, len %zu\n",
 			    fp->filp->f_path.dentry, offset, length);
 		err = ksmbd_vfs_write(work, fp, data_buf, length, &offset,
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-06-17  7:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-13 23:01 [PATCH 1/2] ksmbd: remove duplicate flag set in smb2_write Hyunchul Lee
2022-06-13 23:01 ` [PATCH 2/2] ksmbd: smbd: handle RDMA CM time wait event Hyunchul Lee
2022-06-13 23:10   ` Namjae Jeon
2022-06-14 11:56   ` Tom Talpey
2022-06-15  2:14     ` Hyunchul Lee
2022-06-15 18:52       ` Tom Talpey
2022-06-17  7:51         ` Hyunchul Lee
2022-06-13 23:08 ` [PATCH 1/2] ksmbd: remove duplicate flag set in smb2_write Namjae Jeon
2022-06-13 23:12   ` Hyunchul Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox