move check of s->busy after aquisition of big_comedi_lock in
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 13 Mar 2005 15:17:52 +0000 (15:17 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 13 Mar 2005 15:17:52 +0000 (15:17 +0000)
commit806efd3a306a148e6148560ec34fa6623119a2d5
tree88bcbfdc16d13cb0bb819c94a1a7b5f5493c2074
parentb15596ff7c423baf37a81901cd2e748c1623062f
move check of s->busy after aquisition of big_comedi_lock in
do_lock_ioctl.  Make locking return a less confusing error code
on failure.  Make locking fail if process already has lock (alternative
would be to make locking recursive, but I don't see a reason to bother).
comedi/comedi_fops.c
comedi/kcomedilib/kcomedilib_main.c