]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Use GFP_ATOMIC when a lock is held in cifs_mount()
authorYueHaibing <yuehaibing@huawei.com>
Tue, 18 Dec 2018 01:34:39 +0000 (01:34 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 28 Dec 2018 16:13:11 +0000 (10:13 -0600)
commit442832a99e20b9bea898d752cd515aff94b5cc65
treefdcc3321a6fc1abd1cdbe38896a51645255bd412
parente1a9c34fbca93e52043925b23b3394bd97243916
cifs: Use GFP_ATOMIC when a lock is held in cifs_mount()

A spin lock is held before kstrndup, it may sleep with holding
the spinlock, so we should use GFP_ATOMIC instead.

Fixes: e58c31d5e387 ("cifs: Add support for failover in cifs_reconnect()")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
fs/cifs/connect.c