Herbert Xu wrote: >pravin b shelar wrote: > > >>This patch will remove the need for atomic_dec_and_test for this >>particular case. >>Now we can break down the atomic_dec_and_test to atomic_dec & atomic_read. >> >> > >Sorry I overlooked your patch. Otherwise we could have solved this >one day earlier :) > > ah ... I was just waiting :) > > >>Please comment. >> >> > >There is just one problem. We need an extra barrier before or after >the goto since we no longer have the implicit barrier given by >atomic_dec_and_test. > > I am attaching updated patch with barrier. Regards, Pravin.