diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2006-01-30 06:19:35 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 13:42:57 -0800 |
commit | 8b5536bbee53620f8d5f367987e5727ba36d886d (patch) | |
tree | c4733f4ce2a6d1aab32eda3c096c97f0365a43f8 /fs/char_dev.c | |
parent | 489447380a2921ec0e9154f773c44ab3167ede4b (diff) | |
download | linux-8b5536bbee53620f8d5f367987e5727ba36d886d.tar.gz linux-8b5536bbee53620f8d5f367987e5727ba36d886d.tar.bz2 linux-8b5536bbee53620f8d5f367987e5727ba36d886d.zip |
[PATCH] kref: avoid an atomic operation in kref_put()
Avoid an atomic operation in kref_put() when the last reference is
dropped. On most platforms, atomic_read() is a plan read of the counter
and involves no atomic at all.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions