History

Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull SCSI updates from James Bottomley: "This series consists of the usual driver updates (ufs, ibmvfc, megaraid_sas, lpfc, elx, mpi3mr, qedi, iscsi, storvsc, mpt3sas) with elx and mpi3mr being new drivers. The major core change is a rework to drop the status byte handling macros and the old bit shifted definitions and the rest of the updates are minor fixes" * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (287 commits) scsi: aha1740: Avoid over-read of sense buffer scsi: arcmsr: Avoid over-read of sense buffer scsi: ips: Avoid over-read of sense buffer scsi: ufs: ufs-mediatek: Add missing of_node_put() in ufs_mtk_probe() scsi: elx: libefc: Fix IRQ restore in efc_domain_dispatch_frame() scsi: elx: libefc: Fix less than zero comparison of a unsigned int scsi: elx: efct: Fix pointer error checking in debugfs init scsi: elx: efct: Fix is_originator return code type scsi: elx: efct: Fix link error for _bad_cmpxchg scsi: elx: efct: Eliminate unnecessary boolean check in efct_hw_command_cancel() scsi: elx: efct: Do not use id uninitialized in efct_lio_setup_session() scsi: elx: efct: Fix error handling in efct_hw_init() scsi: elx: efct: Remove redundant initialization of variable lun scsi: elx: efct: Fix spelling mistake "Unexected" -> "Unexpected" scsi: lpfc: Fix build error in lpfc_scsi.c scsi: target: iscsi: Remove redundant continue statement scsi: qla4xxx: Remove redundant continue statement scsi: ppa: Switch to use module_parport_driver() scsi: imm: Switch to use module_parport_driver() scsi: mpt3sas: Fix error return value in _scsih_expander_add() ...

Linus Torvalds committed 5 years ago

Commit bd31b9e2 parents 9f7b640 041761f264 files · +50070 −3039Browse files

Showing the changes to kernel (1 of 264 files). Show all

Unified · Split

kernel/cgroup/cgroup.c+25−0
@@ -5886,6 +5886,31 @@ void cgroup_path_from_kernfs_id(u64 id, char *buf, size_t buflen) · 5885 unmodified lines
5886 kernfs_put(kn);5886 kernfs_put(kn);
5887}5887}
5888 5888
5889/*
5890 * cgroup_get_from_id : get the cgroup associated with cgroup id
5891 * @id: cgroup id
5892 * On success return the cgrp, on failure return NULL
5893 */
5894struct cgroup *cgroup_get_from_id(u64 id)
5895{
5896 struct kernfs_node *kn;
5897 struct cgroup *cgrp = NULL;
5898
5899 mutex_lock(&cgroup_mutex);
5900 kn = kernfs_find_and_get_node_by_id(cgrp_dfl_root.kf_root, id);
5901 if (!kn)
5902 goto out_unlock;
5903
5904 cgrp = kn->priv;
5905 if (cgroup_is_dead(cgrp) || !cgroup_tryget(cgrp))
5906 cgrp = NULL;
5907 kernfs_put(kn);
5908out_unlock:
5909 mutex_unlock(&cgroup_mutex);
5910 return cgrp;
5911}
5912EXPORT_SYMBOL_GPL(cgroup_get_from_id);
5913
5889/*5914/*
5890 * proc_cgroup_show()5915 * proc_cgroup_show()
5891 * - Print task's cgroup paths into seq_file, one line for each hierarchy5916 * - Print task's cgroup paths into seq_file, one line for each hierarchy

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t