relay: fix cpu offline problem
authorLai Jiangshan <laijs@cn.fujitsu.com>
Fri, 14 Nov 2008 09:44:59 +0000 (10:44 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 18 Nov 2008 14:08:56 +0000 (15:08 +0100)
commit98ba4031ab2adc8b394295e68aa4c8fe9d5060db
tree893ac2f6e4efddf79c192e4bae512e3a3f864baa
parent68aee07f9bad2c830a898cf6d6bfc11ea24efc40
relay: fix cpu offline problem

relay_open() will close allocated buffers when failed.
but if cpu offlined, some buffer will not be closed.
this patch fixed it.

and did cleanup for relay_reset() too.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
kernel/relay.c