Re: [PATCH v3 02/17] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2013-11-07 Thread Stefan Behrens
On Thu, 7 Nov 2013 13:51:52 +0800, Qu Wenruo wrote: Use kernel workqueue to implement a new btrfs_workqueue_struct, which has the ordering execution feature like the btrfs_worker. The func is executed in a concurrency way, and the ordred_func/ordered_free is executed in the sequence them are

Re: [PATCH v3 02/17] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2013-11-07 Thread David Sterba
On Thu, Nov 07, 2013 at 10:33:32AM +0100, Stefan Behrens wrote: +struct btrfs_work_struct { + void (*func)(struct btrfs_work_struct *arg); + void (*ordered_func)(struct btrfs_work_struct *arg); + void (*ordered_free)(struct btrfs_work_struct *arg); + + /* Don't touch things

Re: [PATCH v3 02/17] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2013-11-07 Thread Josef Bacik
On Thu, Nov 07, 2013 at 01:51:52PM +0800, Qu Wenruo wrote: Use kernel workqueue to implement a new btrfs_workqueue_struct, which has the ordering execution feature like the btrfs_worker. The func is executed in a concurrency way, and the ordred_func/ordered_free is executed in the sequence

Re: [PATCH v3 02/17] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2013-11-07 Thread Josef Bacik
On Thu, Nov 07, 2013 at 01:08:26PM -0500, Josef Bacik wrote: On Thu, Nov 07, 2013 at 01:51:52PM +0800, Qu Wenruo wrote: Use kernel workqueue to implement a new btrfs_workqueue_struct, which has the ordering execution feature like the btrfs_worker. The func is executed in a concurrency

Re: [PATCH v3 02/17] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2013-11-07 Thread Qu Wenruo
On thu, 7 Nov 2013 17:05:29 +0100, David Sterba wrote: On Thu, Nov 07, 2013 at 10:33:32AM +0100, Stefan Behrens wrote: +struct btrfs_work_struct { + void (*func)(struct btrfs_work_struct *arg); + void (*ordered_func)(struct btrfs_work_struct *arg); + void

Re: [PATCH v3 02/17] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2013-11-07 Thread Qu Wenruo
On Thu, 7 Nov 2013 13:09:56 -0500, Josef Bacik wrote: On Thu, Nov 07, 2013 at 01:08:26PM -0500, Josef Bacik wrote: On Thu, Nov 07, 2013 at 01:51:52PM +0800, Qu Wenruo wrote: Use kernel workqueue to implement a new btrfs_workqueue_struct, which has the ordering execution feature like the

[PATCH v3 02/17] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2013-11-06 Thread Qu Wenruo
Use kernel workqueue to implement a new btrfs_workqueue_struct, which has the ordering execution feature like the btrfs_worker. The func is executed in a concurrency way, and the ordred_func/ordered_free is executed in the sequence them are queued after the corresponding func is done. The new