Re: [PATCH 2/6] io context sharing: preliminary support

2008-01-23 Thread Jens Axboe
On Wed, Jan 23 2008, Andrew Morton wrote: > > On Tue, 22 Jan 2008 10:49:17 +0100 Jens Axboe <[EMAIL PROTECTED]> wrote: > > -void put_io_context(struct io_context *ioc) > > +int put_io_context(struct io_context *ioc) > > { > > if (ioc == NULL) > > - return; > > + return 1; >

Re: [PATCH 2/6] io context sharing: preliminary support

2008-01-23 Thread Andrew Morton
> On Tue, 22 Jan 2008 10:49:17 +0100 Jens Axboe <[EMAIL PROTECTED]> wrote: > -void put_io_context(struct io_context *ioc) > +int put_io_context(struct io_context *ioc) > { > if (ioc == NULL) > - return; > + return 1; > > BUG_ON(atomic_read(&ioc->refcount) == 0

[PATCH 2/6] io context sharing: preliminary support

2008-01-22 Thread Jens Axboe
Detach task state from ioc, instead keep track of how many processes are accessing the ioc. Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> --- block/ll_rw_blk.c | 27 --- fs/ioprio.c |1 - include/linux/blkdev.h|2 +- include/linux/iocont