as-iosched: fix double locking bug in as_merged_requests()
authorJens Axboe <jens.axboe@oracle.com>
Tue, 29 Jan 2008 21:25:18 +0000 (22:25 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 30 Jan 2008 08:11:10 +0000 (09:11 +0100)
If the two requests belong to the same io context, we will attempt
to lock the same lock twice. But swapping contexts is pointless in
that case, so just check for rioc == nioc before doing the double
lock and copy.

Tested-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

No differences found