]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: add a warning if we try to to dequeue a deleted mid
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 30 Aug 2018 00:12:59 +0000 (10:12 +1000)
committerSteve French <stfrench@microsoft.com>
Tue, 2 Oct 2018 23:12:31 +0000 (18:12 -0500)
commit035e8de92482199cf36821bb1f132a11db1a96c9
tree41a64ddbced37ea36da1defdcd8f2eb6c0a270fa
parent35004338172c1e8267b46960c571afa075dda232
cifs: add a warning if we try to to dequeue a deleted mid

cifs_delete_mid() is called once we are finished handling a mid and we
expect no more work done on this mid.

Needed to fix recent commit:
commit 835b1048d8e51eed3f953175c0b89e053f3b2467
("cifs: update smb2_queryfs() to use compounding")

Add a warning if someone tries to dequeue a mid that has already been
flagged to be deleted.
Also change list_del() to list_del_init() so that if we have similar bugs
resurface in the future we will not oops.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/transport.c