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)
commitfa519f701d27198a2858bb108fc18ea9d8c106a7
tree315d6c945db86d66ec34f403f9cb5da0bc77d9ef
parentee35624e1e4e4e9a26a30d56c25a07ba9cdd8ecb
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: a407c593398c ("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