Whamcloud - gitweb
LU-4423 ptlrpc: simplify locking in ptlrpc_add_rqs_to_pool() 11/35511/4
authorNeilBrown <neilb@suse.com>
Sun, 14 Jul 2019 23:41:20 +0000 (19:41 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 9 Aug 2019 04:40:57 +0000 (04:40 +0000)
commita0240c3ef723a7e1ad20f261bb4d47b29f719276
tree1b758a4b0feca688bf22d54663137c45ac152b82
parent8d7f2674337e4f22e200e08ca1ac001ec24b4496
LU-4423 ptlrpc: simplify locking in ptlrpc_add_rqs_to_pool()

This spinlock is only needed in this function to
protect the list_add_tail(), so make that more
obvious.

This change means that prp_rq_size is set outside of the spinlock, but
as it is only ever read outside of the spinlock, that cannot matter.

Change-Id: Ie986bf3737f0da157d991d8880148512bc4dd777
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-on: https://review.whamcloud.com/35511
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/client.c