[SCSI] st: get rid of scsi_tapes array
authorJeff Mahoney <jeffm@suse.de>
Sat, 18 Aug 2012 19:20:39 +0000 (15:20 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 16:59:28 +0000 (17:59 +0100)
commit6c648d95a6af4a79241a916871df17c84c68ea20
tree9c658ea5964dea1ecdb029ce955587d17bea6d03
parente3f2a9cc84d35fac73c906de57ad3b3f5ff82008
[SCSI] st: get rid of scsi_tapes array

st currently allocates an array to store pointers to all of the
scsi_tape objects. It's used to discover available indexes to use as the
base for the minor number selection and later to look up scsi_tape
devices for character devices.

We switch to using an IDR for minor selection and a pointer from
st_modedef back to scsi_tape for the lookups.

Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Acked-by: Kai Mäkisara <kai.makisara@kolumbus.fi>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/st.c
drivers/scsi/st.h