The function was not used as "set_bit" but as "test_and_set_bit".
These were integrated into one function called "set_bit" but nowadays
there are two. One is called "set_bit" and it will only do that. There
is also a function "test_and_set_bit" which will do what it says.
Nice opportunity to submit your first kernel patch.
Roger.