summaryrefslogtreecommitdiff
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-07-22 13:37:43 (GMT)
committerJens Axboe <axboe@nelson.home.kernel.dk>2006-09-30 18:29:36 (GMT)
commit4a893e837bb470867d74c05d6c6b97bba5a96185 (patch)
treea8795f4422eac82679309e1f1f500789c3fd9bff /drivers/scsi/libiscsi.c
parentfc46379daf90dce57bf765c81d3b39f55150aac2 (diff)
downloadlinux-fsl-qoriq-4a893e837bb470867d74c05d6c6b97bba5a96185.tar.xz
[PATCH] elevator: define ioc counting mechanism
None of the in-kernel primitives for handling "atomic" counting seem to be a good fit. We need something that is essentially free for incrementing/decrementing, while the read side may be more expensive as we only ever need to do that when a device is removed from the kernel. Use a per-cpu variable for maintaining a per-cpu ioc count and define a reading mechanism that just sums up the values. Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
0 files changed, 0 insertions, 0 deletions