]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: unalign call_single_data
authorJens Axboe <axboe@kernel.dk>
Wed, 20 Dec 2017 20:14:42 +0000 (13:14 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Dec 2017 20:16:33 +0000 (13:16 -0700)
commit7f459121e3520e4b6b2ac0b044c46b9e86da36d1
tree0eccf5d3eb91f7eb9432e7c70b03dc33184b7b58
parent3b90626904fa319a1a736bd7a536cbcdbfb23199
null_blk: unalign call_single_data

Commit 6b327ac4d75c randomly added alignment to this structure, but
it's actually detrimental to performance of null_blk. Test case:

Running on both the home and remote node shows a ~5% degradation
in performance.

While in there, move blk_status_t to the hole after the integer tag
in the nullb_cmd structure. After this patch, we shrink the size
from 192 to 152 bytes.

Fixes: 6b327ac4d75ca ("smp: Avoid using two cache lines for struct call_single_data")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk.c