]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libfc: fixup 'sleeping function called from invalid context'
authorHannes Reinecke <hare@suse.de>
Wed, 4 Jul 2018 11:59:16 +0000 (13:59 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Jul 2018 02:42:47 +0000 (22:42 -0400)
commit4934298741e681302200cdf9cbda21b7b6073f3a
tree315d6c945db86d66ec34f403f9cb5da0bc77d9ef
parent37d9e8a656727fc26aad4b307296a1568916d4ab
scsi: libfc: fixup 'sleeping function called from invalid context'

fc_rport_login() will be calling mutex_lock() while running inside an
RCU-protected section, triggering the warning 'sleeping function called
from invalid context'.  To fix this we can drop the rcu functions here
altogether as the disc mutex protecting the list itself is already held,
preventing any list manipulation.

Fixes: 500f3c68e93e ("scsi: libfc: Fixup disc_mutex handling")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_disc.c