Re: SCSI tape problems.

From: Paul Gortmaker (p_gortmaker@yahoo.com)
Date: Mon Jan 17 2000 - 05:38:39 EST


Kai Makisara wrote:
>
> On Fri, 14 Jan 2000, Sebastian Andersson wrote:
>
> > I've managed to lock the scsi tape driver by doing this:
> > mt status & mt status & mt status &
>
> ...
>
> The reason for this is that several processes can get into the
> scsi_tape_open function in the driver simultaneously and this is not
> allowed. There is an in_use flag which is set before the function
> returns. However, the process may sleep before that when executing SCSI
> commands ... Setting the flag must be moved earlier.
>
> I will do patches for 2.2 and 2.3 tomorrow (the bug is also in the earlier
> kernels). Before that I will try to find a brow paper bag ;-(

Sounds like a one-liner, in which case it might be appropriate for
the 2.0.39 maintenance release as well.

Paul.

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:16 EST