Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com> wrote:
quoted text > > Better still, atomic_inc_not_zero(). How about the attached patch?
> Your fix looks good to me. But, if usage count of the keyring is 0,
> I think it better to return -ENOKEY immediately.
The problem with that is that someone else may have created a keyring with the
same name that you can't then reach until the dead keyring is deleted.
David
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: [PATCH 1/1][BUG][TAKE2] KEYRINGS: find_keyring_by_name ... , David Howells , (Fri Apr 23, 8:52 am)