Re: [PATCH 1/2] rsocket: Fix removing rsocket from service thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/3/2014 6:08 PM, sean.hefty@xxxxxxxxx wrote:
> From: Sean Hefty <sean.hefty@xxxxxxxxx>
> 
> When removing an rsocket from a service thread, we replace
> the removed service with the one at the end of the service list.
> This keeps the array tightly packed.  However, rs_svc_rm_rs
> decrements the rsocket count before doing the swap.  The result
> is that the entry at the end of the list gets dropped off.
> Defer decrementing the count until the swap has been made.
> 
> In this case, the cnt value is a valid index into the array,
> because we start at index 1.  Index 0 is used internally by
> the service thread.
> 
> Signed-off-by: Sean Hefty <sean.hefty@xxxxxxxxx>

Tested-by: Hal Rosenstock <hal@xxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux