Re: [PATCH V1] elevator: Fix a race about elevator switching.

2013-07-03 Thread Jens Axboe
On Mon, Jul 01 2013, majianpeng wrote: > Thare's a race between elevator switching and normal io operation. > Because the allocation of struct elevator_queue and struct elevator_data > don't in a atomic operation.So there are have chance to use NULL > ->elevator_data. > For example:

[PATCH V1] elevator: Fix a race about elevator switching.

2013-07-01 Thread majianpeng
Thare's a race between elevator switching and normal io operation. Because the allocation of struct elevator_queue and struct elevator_data don't in a atomic operation.So there are have chance to use NULL ->elevator_data. For example: Thread A:

Re: 回复: elevator: Fix a race about elevator switching.

2013-06-28 Thread Jens Axboe
On Thu, Jun 27 2013, majianpeng wrote: > Hi Jens, > How about this patch? Queued up for 3.11, thanks. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.

Re: elevator: Fix a race about elevator switching.

2013-04-16 Thread Gu Zheng
On 02/21/2013 04:42 PM, majianpeng wrote: > Thare's a race between elevator switching and normal io operation. > Because the allocation of struct elevator_queue and struct elevator_data > don't in a atomic operation.So there are have chance to use NULL > ->elevator_data. > For exam

Re: elevator: Fix a race about elevator switching.

2013-04-15 Thread majianpeng
Hi Jens, How about this patch? It was a long time. Thanks! Jianpeng Ma > Thare's a race between elevator switching and normal io operation. > Because the allocation of struct elevator_queue and struct elevator_data > don't in a atomic operation.So there are have chance to use NULL > ->

elevator: Fix a race about elevator switching.

2013-02-21 Thread majianpeng
Thare's a race between elevator switching and normal io operation. Because the allocation of struct elevator_queue and struct elevator_data don't in a atomic operation.So there are have chance to use NULL ->elevator_data. For example: Thread A: