commit | 149a051f82d2b3860fe32fa182dbc83a66274894 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Jan 29 22:25:18 2008 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Jan 30 09:11:10 2008 +0100 |
tree | 4ca660bb2ee8ac25661a38587d785cd9f78b2125 | |
parent | 5b10ca19ea4859d3884d10a3eb8495de92089792 [diff] |
as-iosched: fix double locking bug in as_merged_requests() 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>