io context: fix ref counting
commitcbb4f2646d77b536ed2b1500ef6641083228ed8f
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 31 Jul 2009 06:55:48 +0000 (31 08:55 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 31 Jul 2009 06:55:48 +0000 (31 08:55 +0200)
treee238098c2239ca1a2ec978858f63566d0281d49a
parent56ad1740d9a8dc271e71fee234be662638c64458
io context: fix ref counting

Commit d9c7d394a8ebacb60097b192939ae9f15235225e
("block: prevent possible io_context->refcount overflow") mistakenly
changed atomic_inc(&ioc->nr_tasks) to atomic_long_inc(&ioc->refcount).

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
include/linux/iocontext.h