]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: release lock earlier in dequeue_mid error case
authorSteve French <stfrench@microsoft.com>
Fri, 12 Nov 2021 15:55:03 +0000 (09:55 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 12 Nov 2021 18:59:51 +0000 (12:59 -0600)
commit59b985b10a63e5c4772452b8b1ec122f6c42ac16
treea088a0935db016b3ea308086e832b400f0d9e29d
parentd3cd98a7e2caa97fc39223d793aa6f7d6b3a75df
cifs: release lock earlier in dequeue_mid error case

In dequeue_mid we can log an error while holding a spinlock,
GlobalMid_Lock.  Coverity notes that the error logging
also grabs a lock so it is cleaner (and a bit safer) to
release the GlobalMid_Lock before logging the warning.

Addresses-Coverity: 1507573 ("Thread deadlock")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c