linux_dsm_epyc7002/drivers/scsi/osd
Boaz Harrosh 021e2230d6 [SCSI] osduld: use filp_open() when looking up an osd-device
This patch was inspired by Al Viro, for simplifying and fixing the
retrieval of osd-devices by in-kernel users, eg: file systems.
In-Kernel users, now, go through the same path user-mode does by
opening a file on the osd char-device and though holding a reference
to both the device and the Module.

A file pointer was added to the osd_dev structure which is now
allocated for each user. The internal osd_dev is no longer exposed
outside of the uld. I wanted to do that for a long time so each
libosd user can have his own defaults on the device.

The API is left the same, so user code need not change.

It is no longer needed to open/close a file handle on the osd
char-device from user-mode, before mounting an exofs on it.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
CC: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2009-06-10 09:00:25 -05:00
..
Kbuild [SCSI] libosd: SCSI/OSD Sense decoding support 2009-03-12 12:58:09 -05:00
Kconfig [SCSI] osd: Kconfig file for in-tree builds 2009-03-12 12:58:09 -05:00
Makefile [SCSI] libosd: OSDv1 preliminary implementation 2009-03-12 12:58:06 -05:00
osd_debug.h [SCSI] libosd: OSDv1 preliminary implementation 2009-03-12 12:58:06 -05:00
osd_initiator.c [SCSI] libosd: Define an osd_dev wrapper to retrieve the request_queue 2009-06-10 09:00:13 -05:00
osd_uld.c [SCSI] osduld: use filp_open() when looking up an osd-device 2009-06-10 09:00:25 -05:00