]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] cxgb4i: avoid holding mutex in interrupt context
authorAnish Bhatt <anish@chelsio.com>
Tue, 16 Sep 2014 00:44:18 +0000 (17:44 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 1 Oct 2014 17:40:22 +0000 (13:40 -0400)
commitb619ef4d5821f3f25fa803ae36af260526fe8e77
tree59f80cbdbd8f9468c1594eef93f89f90926060b7
parentca09702717581356bb91e5bbfbb244eda384a004
[SCSI] cxgb4i: avoid holding mutex in interrupt context

cxgbi_inet6addr_handler() can be called in interrupt context, so use rcu
protected list while finding netdev.  This is observed as a scheduling in
atomic oops when running over ipv6.

Fixes: 459f31f014f8 ("libcxgbi: Add ipv6 api to driver")
Fixes: 6719cfb004fc ("cxgb4i: Add ipv6 code to driver, call into libcxgbi ipv6 api")
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: Karen Xie <kxie@chelsio.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
drivers/scsi/cxgbi/libcxgbi.c
drivers/scsi/cxgbi/libcxgbi.h