linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Feature enhancements for ses module
@ 2014-12-30 22:46 Song Liu
  2015-01-05 19:26 ` Christoph Hellwig
  0 siblings, 1 reply; 19+ messages in thread
From: Song Liu @ 2014-12-30 22:46 UTC (permalink / raw)
  To: linux-scsi; +Cc: hch, hare, dgilbert, Song Liu

1: close potential race condition by at enclosure race condition

2,3,4: add enclosure id and device slot, so we can create symlink
       in /dev/disk/by-slot:
  # ls -d /dev/disk/by-slot/*
    /dev/disk/by-slot/enclosure-0x5000ae41fc1310ff-slot0

5: add ability to power on/off device with power_status file in
   sysfs.

Due to the complexity of SES standard, the module is not to replace implement \
all features of sg_ses (sg3_utils).

Patch 5 and existing features for device element and array device elements control \
of HDDs. It is helpful to handle some HDD related fields in the kernel, as the \
kernel can generate mapping between a device to the SES device element (or array \
device element):

/sys/block/sdc/device/enclosure_deviceXXX/

With patch 5, we can easily power off a running HDD by

echo off > /sys/block/sdc/device/enclosure_deviceXXX/power_status

This is very useful for systems like Cold Storage, where HDDs are being powered \
on/off frequently


Dan Williams (4):
  ses: close potential registration race
  ses: generate KOBJ_CHANGE on enclosure attach
  ses: add enclosure logical id
  ses: add reliable slot attribute

Song Liu (1):
  ses: Add power_status to SES device slot

 drivers/misc/enclosure.c  | 106 +++++++++++++++++++++++++++++----
 drivers/scsi/ses.c        | 148 +++++++++++++++++++++++++++++++++++++++-------
 include/linux/enclosure.h |  13 +++-
 3 files changed, 232 insertions(+), 35 deletions(-)

-- 
1.8.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-01-05 19:26 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1408987546-2418-1-git-send-email-songliubraving@fb.com>
2014-08-25 17:34 ` [PATCH 0/5] Feature enhancements for ses module Song Liu
2014-10-22 19:12   ` Jens Axboe
2014-10-22 22:28     ` Douglas Gilbert
2014-10-22 23:01       ` Song Liu
2014-10-23  1:17         ` Douglas Gilbert
2014-10-23  3:42           ` Song Liu
2014-10-28  0:32           ` Song Liu
2014-10-23  8:45     ` Christoph Hellwig
     [not found] ` <1408987546-2418-3-git-send-email-songliubraving@fb.com>
2014-08-25 17:34   ` [PATCH 2/5] SES: generate KOBJ_CHANGE on enclosure attach Song Liu
     [not found]     ` <54081A32.9070303@suse.de>
2014-09-12 21:03       ` Song Liu
     [not found] ` <1408987546-2418-4-git-send-email-songliubraving@fb.com>
2014-08-25 17:34   ` [PATCH 3/5] SES: add enclosure logical id Song Liu
     [not found]     ` <54081ABD.9080104@suse.de>
2014-09-12 21:04       ` Song Liu
     [not found] ` <1408987546-2418-5-git-send-email-songliubraving@fb.com>
2014-08-25 17:34   ` [PATCH 4/5] SES: add reliable slot attribute Song Liu
     [not found]     ` <54081AEE.3030200@suse.de>
2014-09-12 21:04       ` Song Liu
     [not found] ` <1408987546-2418-6-git-send-email-songliubraving@fb.com>
2014-08-25 17:34   ` [PATCH 5/5] SES: Add power_status to SES enclosure component Song Liu
     [not found]     ` <54081BAA.1070304@suse.de>
2014-09-12 21:07       ` Song Liu
2014-09-12 21:08       ` Song Liu
2014-12-30 22:46 [PATCH 0/5] Feature enhancements for ses module Song Liu
2015-01-05 19:26 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).