]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit5f888d63313f67704d39f7c0a2cb45f267645379
tree9c658ea5964dea1ecdb029ce955587d17bea6d03
parent06b053da21f61a560a2c107e0d30130d0eac8868
[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