]> git.baikalelectronics.ru Git - kernel.git/commit
svcrpc: don't hold sv_lock over svc_xprt_put()
authorJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 30 Mar 2010 01:02:31 +0000 (21:02 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 30 Mar 2010 01:02:31 +0000 (21:02 -0400)
commit74c16907e0467236ba638fa16de17aaa115685e0
treeb8312151a877978d579af189789e1f3f477f3a5f
parent93fc206e34fb9d2a005279b3c23334ded0eac631
svcrpc: don't hold sv_lock over svc_xprt_put()

svc_xprt_put() can call tcp_close(), which can sleep, so we shouldn't be
holding this lock.

In fact, only the xpt_list removal and the sv_tmpcnt decrement should
need the sv_lock here.

Reported-by: Mi Jinlong <mijinlong@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/svc_xprt.c