CIFS: Fix trace command logging for SMB2 reads and writes
authorPavel Shilovsky <pshilov@microsoft.com>
Fri, 25 Jan 2019 19:38:53 +0000 (11:38 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2019 16:30:11 +0000 (17:30 +0100)
commit6e7045ec336be8eafa26270efe013e5a17371cf6
tree3dbc386004d5ed4719a44e1eb37c5654ce5a3688
parentc6961288a5f465d7753408a8b6b8158907476ea6
CIFS: Fix trace command logging for SMB2 reads and writes

commit 7d42e72fe8ee5ab70b1af843dd7d8615e6fb0abe upstream.

Currently we log success once we send an async IO request to
the server. Instead we need to analyse a response and then log
success or failure for a particular command. Also fix argument
list for read logging.

Cc: <stable@vger.kernel.org> # 4.18
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2pdu.c