]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/scsi/osd/osd_uld.c: use ida_simple_get() to handle id
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 5 Oct 2011 00:42:38 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Oct 2011 05:48:56 +0000 (16:48 +1100)
commit8b3f0b22ada3cc0a12749f3473015476c9f3984c
tree8071f5b92f46008742aa360274380be1632663d4
parentba5396e65461890de793945cb809e37cabbd0cae
drivers/scsi/osd/osd_uld.c: use ida_simple_get() to handle id

This does involve additional use of the spin lock in idr.c.  Is this an
issue?

Also, some error mangling was needed to keep the interface the same.  Does
this matter or can we return -ENOSPC instead of -EBUSY?

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Tejun Heo <tj@kernel.org>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Boaz Harrosh <bharrosh@panasas.com>
Cc: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/scsi/osd/osd_uld.c