Re: [PATCH] IB/srp: fix race condition on srp_target_port.req_lim

2010-07-26 Thread Bart Van Assche
On Sun, Jul 25, 2010 at 8:36 PM, David Dillow wrote: > > On Sun, 2010-07-25 at 18:12 +0200, Bart Van Assche wrote: > > In the current implementation of ib_srp the req_lim field of > > struct srp_target_port can be manipulated in a non-atomic way by > > more than one CPU at a time: one CPU can be m

Re: [PATCH] IB/srp: fix race condition on srp_target_port.req_lim

2010-07-25 Thread David Dillow
On Sun, 2010-07-25 at 18:12 +0200, Bart Van Assche wrote: > In the current implementation of ib_srp the req_lim field of > struct srp_target_port can be manipulated in a non-atomic way by > more than one CPU at a time: one CPU can be modifying req_lim in > function srp_process_rsp() while another C

[PATCH] IB/srp: fix race condition on srp_target_port.req_lim

2010-07-25 Thread Bart Van Assche
In the current implementation of ib_srp the req_lim field of struct srp_target_port can be manipulated in a non-atomic way by more than one CPU at a time: one CPU can be modifying req_lim in function srp_process_rsp() while another CPU can concurrently be decrementing req_lim in function __srp_get_